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

From Dimitri Fontaine
Subject Re: WIP: default values for function parameters
Date
Msg-id 345A1055-7665-46BD-8BFE-AE8911059E98@hi-media.com
Whole thread Raw
In response to Re: WIP: default values for function parameters  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: WIP: default values for function parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: WIP: default values for function parameters  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Le 13 déc. 08 à 11:39, Peter Eisentraut a écrit :
> On Friday 12 December 2008 20:05:57 Tom Lane wrote:
>> 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.
>
> I personally thought that AS was a better idea.

It seems some people want to be able to overload some default
parameters (but not others) and at the same time alias them to some
new label. I'm not sure I understand it all, but it seems an example
of it would be like:  SELECT xml_function(a, b: 'foo' AS bar);

If this is what some people want when all the spare parts are bound
together, we don't have the option to use AS for both the meanings.

Regards,
- --
dim



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAklDqg0ACgkQlBXRlnbh1blPKwCfayDs3vFnswOYe7yLRyEaJf00
HvYAn1sfYndeKfI4ac09IxuxUVuUqbdX
=BGDG
-----END PGP SIGNATURE-----


pgsql-hackers by date:

Previous
From: Albert Cervera i Areny
Date:
Subject: Re: WIP: default values for function parameters
Next
From: Markus Wanner
Date:
Subject: Re: Sync Rep: First Thoughts on Code