From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
Cc: | Scott Bailey <artacus(at)comcast(dot)net>, hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Range types |
Date: | 2009-12-16 14:55:57 |
Message-ID: | 3240.1260975357@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dimitri Fontaine <dfontaine(at)hi-media(dot)com> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> foreach p2_member in unnest(p2) loop
>> p1 := array(select period_except(p1_member, p2_member)
>> from unnest(p1) p1_member);
>> end loop;
>>
>> But maybe it can be done in a single SQL command.
> Yeah, as soon as you have LATERAL, I think. Without it there's no way to
> compose SRF in SQL, AFAIK.
Hm, how would you do it with LATERAL? The problem is not so much
composition as the need for a variable number of rounds of composition.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2009-12-16 15:02:05 | Re: Patch: Remove gcc dependency in definition of inline functions |
Previous Message | Tom Lane | 2009-12-16 14:50:53 | Re: Patch: Remove gcc dependency in definition of inline functions |