Re: functional call named notation clashes with SQL feature - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: functional call named notation clashes with SQL feature
Date
Msg-id 4BFF65E0.2090709@enterprisedb.com
Whole thread Raw
In response to Re: functional call named notation clashes with SQL feature  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: functional call named notation clashes with SQL feature
List pgsql-hackers
On 27/05/10 22:55, Tom Lane wrote:
> Peter Eisentraut<peter_e@gmx.net>  writes:
>> How about
>> select myfunc(a := 7, b := 6);
>> ?
>
> Hey, that's a thought.  We couldn't have used that notation before
> because we didn't have := as a separate token, but since I hacked that
> in for plpgsql's benefit, I think it might be an easy fix.  It'd be
> nice that it puts the argument name first like the spec syntax, too.

If we go with that, should we make some preparations to allow => in the 
future? Like provide an alternative operator name for hstore's =>, and 
add a note somewhere in the docs to discourage other modules from using =>.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Patch submission deadline for CommitFest 2010-07
Next
From: Heikki Linnakangas
Date:
Subject: Re: Patch submission deadline for CommitFest 2010-07