"Mark Reid" <reid(dot)write(at)gmail(dot)com> writes:
> The trigger function does not recognize the "test4" column the second time
> it is added - the update throws an error.
Try this patch:
http://archives.postgresql.org/pgsql-committers/2008-01/msg00016.php
regards, tom lane