From: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
---|---|
To: | Ian Caulfield <ian(dot)caulfield(at)gmail(dot)com> |
Cc: | "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: WIP: default values for function parameters |
Date: | 2008-12-12 13:33:23 |
Message-ID: | DFF7D108-E023-4B06-9F22-F452BFC97C5C@hi-media.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Le 12 déc. 08 à 14:14, Ian Caulfield a écrit :
> unpopular, and '=>' et al conflict with operators, would verilog-style
> syntax - eg function( .param(value) ) - be an idea?
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
Regards,
- --
dim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAklCaCMACgkQlBXRlnbh1blryQCfR9/6qtOlSAOiMbQ+RD8PRTi+
bsoAn2UiLMwZOG9nanXyMWfh5iAbQVTX
=p37W
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2008-12-12 13:37:23 | Re: WIP: default values for function parameters |
Previous Message | Tom Lane | 2008-12-12 13:24:36 | Re: psql commands for SQL/MED |