OSDN Git Service

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)
commit6b73da67b2db6e6a4a1a0113d00e749698125a07
tree65a1651c7576e4175670bb60492a0a44891729b9
parente8839c2b6c00bac6d8119ec0cc27a5e77169c8a0
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