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