Disallow converting a table to a view if it has triggers, indexes, or

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6b73da67b2db6e6a4a1a0113d00e749698125a07
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-09-17T17:19:17Z
Releases: 7.4.1
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.

Files

PathChange+/−
src/backend/rewrite/rewriteDefine.c modified +25 −3