Skip site navigation (1) Skip section navigation (2)

Re: BUG #5503: error in trigger function with dropped columns

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Maksym Boguk" <Maxim(dot)Boguk(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5503: error in trigger function with dropped columns
Date: 2010-06-13 16:09:21
Message-ID: 14504.1276445361@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Maksym Boguk" <Maxim(dot)Boguk(at)gmail(dot)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

In response to

Responses

pgsql-bugs by date

Next:From: Jan MerkaDate: 2010-06-13 21:29:48
Subject: BUG #5504: cache lookup failed for function
Previous:From: Hartmut GoebelDate: 2010-06-13 15:43:48
Subject: Re: BUG #5488: pg_dump does not quote column names -> pg_restore may fail when upgrading

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group