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

Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp.

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>,Markus Bertheau <twanger(at)bluetwanger(dot)de>
Subject: Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp.
Date: 2005-05-31 22:02:00
Message-ID: 429CDED8.8010704@joeconway.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patchespgsql-sql
Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)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

In response to

pgsql-hackers by date

Next:From: Oleg BartunovDate: 2005-05-31 22:22:18
Subject: Re: Deadlock with tsearch2 index ...
Previous:From: Tom LaneDate: 2005-05-31 21:58:03
Subject: Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp. {}

pgsql-patches by date

Next:From: Pavel StehuleDate: 2005-06-01 09:21:47
Subject: patch for between symmetric, asymmetric (from TODO)
Previous:From: Tom LaneDate: 2005-05-31 21:58:03
Subject: Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp. {}

pgsql-sql by date

Next:From: PFCDate: 2005-05-31 23:11:45
Subject: Re: Sum() rows
Previous:From: Tom LaneDate: 2005-05-31 21:58:03
Subject: Re: [SQL] ARRAY() returning NULL instead of ARRAY[] resp. {}

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