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

From Asko Oja
Subject Re: WIP: default values for function parameters
Date
Msg-id ecd779860812130011j12b436c4n7d723cd9158606cd@mail.gmail.com
Whole thread Raw
In response to Re: WIP: default values for function parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers


On Fri, Dec 12, 2008 at 8:05 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Michael Meskes <meskes@postgresql.org> writes:
> On Fri, Dec 12, 2008 at 10:06:30AM -0500, Tom Lane wrote:
>> Hmm ... actually, ecpg might be a problem here anyway.  I know it has
>> special meaning for :name, but does it allow space between the colon
>> and the name?  If it does then the colon syntax loses.  If it doesn't

> No. Here's the lexer rule:
> <SQL>:{identifier}((("->"|\.){identifier})|(\[{array}\]))*
> No space possible between ":"  and {identifier}.

Excellent.  I checked that psql's colon-variable feature behaves the
same.  So it looks like the proposed "name: value" syntax would indeed
not break any existing features.  Barring better ideas I think we should
go with that one. 
+1
"name: value" should be good enough

                       regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)
Next
From: Simon Riggs
Date:
Subject: Re: Sync Rep: First Thoughts on Code