hi.
V3 is attached. this should be more neat.
Now it looks very similar to how statistics cope with column data type change.
For statistics, in ATPostAlterTypeParse we will call
transformStatsStmt, we need to do the similar thing for the trigger
WHEN clause.
I introduced transformTriggerStmt and placed it in
src/backend/commands/trigger.c, which should be fine, I think.
It will be invoked from within CreateTriggerFiringOn.
--
jian
https://www.enterprisedb.com/