]> granicus.if.org Git - postgresql/commit
Throw an appropriate error if ALTER COLUMN TYPE finds a dependent trigger.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 Oct 2010 22:21:41 +0000 (18:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 Oct 2010 22:21:41 +0000 (18:21 -0400)
commit1f0b62e8c28026f5d1d3693087f7b4aef6a191af
tree4b19501703245505629a1ea4d8a228fd68d2e096
parent50595b5fce2e15b5ef26b057799b4a4cdd1c10e8
Throw an appropriate error if ALTER COLUMN TYPE finds a dependent trigger.

Actually making this case work, if the column is used in the trigger's
WHEN condition, will take some new code that probably isn't appropriate
to back-patch.  For now, just throw a FEATURE_NOT_SUPPORTED error rather
than allowing control to reach the "unexpected object" case.  Per bug #5688
from Daniel Grace.  Back-patch to 9.0 where the possibility of such a
dependency was introduced.
src/backend/commands/tablecmds.c