Re: issues with dropped columns in plpgsql code again

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: issues with dropped columns in plpgsql code again
Date: 2013-05-11 04:34:24
Message-ID: CAFj8pRAfaNUZzVrRZAkW+d=uOT6+_AvBktJOmv4TOBYxAeg9Kw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dne 10.5.2013 22:17 "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> napsal(a):
>
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> > One user reported a issues with triggers related to dropped columns.
> > When I checked his code, I found a more possible problems.
>
> This is just the same kind of modified-rowtype problem we've discussed
> before.

Yes. It is same problém.

>
> I continue to maintain that the only realistic fix is to stop using the
> PLPGSQL_DTYPE_ROW infrastructure for variables of externally-defined
> composite types. In the last go-round, this was rejected on the
> (unproven) assumption that it would make things slower. But as a wise
> man once said, you can make code arbitrarily fast if it doesn't have to
> give the right answer.

Yes. It is probably solutions.

Regards

Pavel
>
> regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2013-05-11 04:58:47 Re: In progress INSERT wrecks plans on table
Previous Message Amit kapila 2013-05-11 03:33:15 Re: corrupt pages detected by enabling checksums