From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [Fwd: SETOF input parameters (was Re: [HACKERS] proposal: |
Date: | 2002-12-19 06:12:37 |
Message-ID: | 15942.1040278357@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Joe Conway <mail(at)joeconway(dot)com> writes:
> Tom Lane wrote:
>> I'm leaning more and more to the thought that we should reconsider the
>> Berkeley approach.
> The problem with the Berkley approach is what to do if there are two SRFs in
> the target list.
Agreed. The Berkeley code (or more accurately, the descendant code
that's in our source tree) generates the cross product of the rows
output by the SRFs, but I've never understood why that should be a good
approach to take. I could live with just rejecting multiple SRFs in the
same targetlist --- at least till someone comes up with a convincing
semantics for such a thing.
> Is it too ugly to allow:
> select ... from (select mysrf(foo.a, foo.b) from foo) as t;
> where the Berkley syntax is restricted to where both are true:
> 1. a single target -- the srf
> 2. in a FROM clause subselect
Point 2 doesn't mean anything I think. Given your point 1 then the
select mysrf() ... is well-defined regardless of context.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Philip Warner | 2002-12-19 06:32:24 | Re: v7.3.1 tar ready ... please check it ... |
Previous Message | Joe Conway | 2002-12-19 05:39:39 | Re: user defined settings (aka user defined guc variables) |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-12-19 17:56:11 | Re: max_fsm_pages increased to 1000 by default |
Previous Message | Joe Conway | 2002-12-19 02:53:42 | Re: [Fwd: SETOF input parameters (was Re: [HACKERS] proposal: |