Re: WIP: default values for function parameters

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "Greg Stark" <stark(at)enterprisedb(dot)com>, "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Dimitri Fontaine" <dfontaine(at)hi-media(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, "Michael Meskes" <meskes(at)postgresql(dot)org>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, "Heikki Linnakangas" <heikki(dot)linnakangas(at)enterprisedb(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Grzegorz Jaskiewicz" <gj(at)pointblue(dot)com(dot)pl>
Subject: Re: WIP: default values for function parameters
Date: 2008-12-15 10:27:07
Message-ID: 162867790812150227v1161812nc434f733de81bdb8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2008/12/15 Peter Eisentraut <peter_e(at)gmx(dot)net>:
> Pavel Stehule wrote:
>>
>> Because AS is signal for collecting column (or label) names.
>>
>> I thing so we should use "AS" as Tom's proposal, together with SQL/XML
>> functionality.
>
> Yes, please implement that.
>

I'll do it - it's better then nothing,

>> It's only idea: default behave is using as for param name specification,
>>
>> seconf with flag maybe labeled allows using AS in SQL/XML behave
>>
>> But this syntax don't allow use this feature together (it is maybe
>> enought).\
>>
>> create function json(variadic labeled values int[]) ...
>
> I didn't get that ... :-(

First I have to look to code, use "AS" means, so there will be one
syntactic role with two meanings.

Pavel
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2008-12-15 11:06:23 Re: WIP: default values for function parameters
Previous Message Peter Eisentraut 2008-12-15 10:07:47 Re: WIP: default values for function parameters