Re: Typing Records - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Typing Records
Date
Msg-id 865.1282667240@sss.pgh.pa.us
Whole thread Raw
In response to Re: Typing Records  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Typing Records
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Aug 24, 2010 at 11:32 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I think it wouldn't take too much code to defend against this in
>> transformArrayExpr, but I'm a tad worried about whether there are
>> similar cases elsewhere. �The generic problem is that we suppose that
>> different values are compatible if they have the same type OID, but
>> for RECORD types that's really not true.

> We've argued about this before: it's not really true for array types
> either.

Yeah, I'm starting to feel that the typmod hack for this is just not
good enough.  However ...

> Nevertheless, there's not much hope of better than a localized fix for
> this particular bug.

This is a crash in released branches, so we have to have a
back-patchable fix.  Anything that gets out from under the typmod issue
isn't going to be back-patchable.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: EXPLAIN doesn't show the actual function expression for FunctionScan
Next
From: "Eric Simon"
Date:
Subject: Re: Problem Using PQcancel in a Synchronous Query