Re: BUG #5503: error in trigger function with dropped columns - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5503: error in trigger function with dropped columns
Date
Msg-id 14504.1276445361@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5503: error in trigger function with dropped columns  ("Maksym Boguk" <Maxim.Boguk@gmail.com>)
Responses Re: BUG #5503: error in trigger function with dropped columns  (Maxim Boguk <maxim.boguk@gmail.com>)
List pgsql-bugs
"Maksym Boguk" <Maxim.Boguk@gmail.com> writes:
> This bug hard to describe. But in general if a table contained dropped
> columns you cannot use return record variable in trigger function.

This is fixed for 9.0 ... or at least the specific test case you provide
doesn't fail.  We have not risked back-porting the change though,
because there are other aspects of what the new code does that might
cause people problems, eg
http://archives.postgresql.org/pgsql-hackers/2010-03/msg00444.php
http://archives.postgresql.org/message-id/6645.1267926354@sss.pgh.pa.us

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Maksym Boguk"
Date:
Subject: BUG #5503: error in trigger function with dropped columns
Next
From: Hartmut Goebel
Date:
Subject: Re: BUG #5488: pg_dump does not quote column names -> pg_restore may fail when upgrading