"Nahuel Greco" <ngreco(at)gmail(dot)com> writes:
> If I create a trigger for a table, the trigger works
> ok, but if I add a new column to the table, then
> the trigger receives a NEW record with the old
> structure! I can fix that only if I remove the trigger
> from the table _and_ the trigger function.
Starting a fresh backend session would be sufficient. I believe the
issue is that plpython is caching tuple structure information.
regards, tom lane