"Michael P. Soulier" <michael_soulier@mitel.com> writes:
> This worked in 7.4 but fails now with
> cannot ALTER TABLE "instances" because it has pending trigger events
I think the problem is you're issuing all those commands in one
transaction. If you COMMIT the updates then the subsequent ALTERs
should go through.
regards, tom lane