On Dec 14, 2008, at 6:55 AM, Tom Lane wrote:
>> The whole relabeling thing seems like a seriously silly idea.
>
> I wouldn't say that it's silly. What I do say is that it makes no
> sense
> to imagine that it would be used at the same time as named parameters.
> The entire point of something like XMLELEMENT is that it takes a
> list of
> undifferentiated parameters, which therefore do not need to have names
> so far as the function is concerned.
Perhaps not, but I have to say, looking at Robert's JSON example:
> SELECT json(r.foo AS foo, r.bar AS bar, r.baz AS baz, r.bletch AS
> quux) FROM rel r;
I would be pretty confused. It looks exactly like the proposed syntax
for named parameters. So while syntactically they may never be used
together, there's a semantic mismatch, IMHO.
Best,
David