Disallow converting a table to a view if it has triggers, indexes, or
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Sep 2003 17:19:17 +0000 (17:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Sep 2003 17:19:17 +0000 (17:19 +0000)
commit3711fb31b066b5ed6be9e6c66c2ae8695e67a3ba
tree4f0a07a3a4c8ea56021603a84aa05c55f31c72ad
parent826745648eccbc9a1ccf55c251e8883fffcd2e1a
Disallow converting a table to a view if it has triggers, indexes, or
child tables --- all cases that will trip various sanity checks elsewhere
in the system, as well as cases that should not occur in the only intended
use of this feature, namely coping with ancient pg_dump representation
of views.  Per bug report from Chris Pizzi.
src/backend/rewrite/rewriteDefine.c