Re: WIP: default values for function parameters - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: WIP: default values for function parameters
Date
Msg-id 9D75A161-0BF0-43AF-A8C5-4487DC23E1AB@kineticode.com
Whole thread Raw
In response to Re: WIP: default values for function parameters  (Dimitri Fontaine <dfontaine@hi-media.com>)
List pgsql-hackers
On Dec 12, 2008, at 2:33 PM, Dimitri Fontaine wrote:

>
> Ok, time to revisit the classics then ;)
>  http://www.gigamonkeys.com/book/functions.html#keyword-parameters
>
> That would give us things like this:
>  SELECT foo(1, :name 'bar', :quantity 10);
>
> As colon character does not appear in the list of allowed characters  
> for the CREATE OPERATOR, it seems it could be valid.
>  http://www.postgresql.org/docs/8.3/interactive/sql- 
> createoperator.html

Oh, I like the colon, but better at the end of the label:
 SELECT foo(1, name: 'bar', quantity: 10);

Best,

Daivd


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: PostgreSQL 8.3.4 reproducible crash
Next
From: "David E. Wheeler"
Date:
Subject: Re: WIP: default values for function parameters