Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp. - Mailing list pgsql-patches

From Joe Conway
Subject Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp.
Date
Msg-id 429CDED8.8010704@joeconway.com
Whole thread Raw
In response to Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp. {}  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>
>>>+     Oid            element_type = planstate->ps_ResultTupleSlot->tts_tupleDescriptor->attrs[0]->atttypid;
>
>
> Hmm, that makes me itch ... it seems like unwarranted familiarity with
> the innards of the subplan; not only as to where it keeps things, but
> when things have been initialized.  Perhaps we have no choice, but isn't
> the datatype available on the current plan level?
>

I poked around a bit, and that was the best I could come up with. I'll
take another look.

Joe

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp. {}
Next
From: Pavel Stehule
Date:
Subject: patch for between symmetric, asymmetric (from TODO)