Re: WIP: default values for function parameters

From: "Asko Oja" <ascoja(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Michael Meskes" <meskes(at)postgresql(dot)org>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>, "Heikki Linnakangas" <heikki(dot)linnakangas(at)enterprisedb(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Gregory Stark" <stark(at)enterprisedb(dot)com>, "Grzegorz Jaskiewicz" <gj(at)pointblue(dot)com(dot)pl>, "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Subject: Re: WIP: default values for function parameters
Date: 2008-12-13 08:11:33
Message-ID: ecd779860812130011j12b436c4n7d723cd9158606cd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 12, 2008 at 8:05 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Michael Meskes <meskes(at)postgresql(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-12-13 09:19:31 Re: Sync Rep: First Thoughts on Code
Previous Message Corey Horton 2008-12-13 05:03:12 array_to_string(anyarray, text) that was working in 8.1 is not working in 8.3