Throw an appropriate error if ALTER COLUMN TYPE finds a dependent trigger.
authorTom Lane
Sat, 2 Oct 2010 22:21:41 +0000 (18:21 -0400)
committerTom Lane
Sat, 2 Oct 2010 22:22:08 +0000 (18:22 -0400)
commit8178d9480aeedfa20157bb98e21b5f3b6eb8a957
tree46d0b6b7ba18b6c873b9a66783054327d2f93ab0
parenta0ccae7ed41201251c0da51a91b84eb9d13c4ab1
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