From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Matthew Draper <matthew(at)trebex(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: WIP: Allow SQL-language functions to reference parameters by parameter name |
Date: | 2011-04-05 21:52:58 |
Message-ID: | 4D9B8F3A.5070108@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 04/05/2011 03:45 PM, Merlin Moncure wrote:
> Talking about the standards compliance of functions is a bit silly:
> our implementation of functions isn't even close to approximating what
> looks to be the standard (according to this at least:
> http://farrago.sourceforge.net/design/UserDefinedTypesAndRoutines.html)
> and there is no point pretending that it is. In practice, database
> functions and procedures are 100% vendor incompatible with each other,
> and with the standard. I was just talking about $ getting reserved
> for some special meaning in the future.
>
> mysql supports psm, which we don't. oracle supports pl/sql, which is
> similar to pl/pgsql, but means nothing in terms of postgresql sql
> language argument disambiguation afaict. It's our language and we
> should be able to extend it.
>
>
That doesn't mean we should arbitrarily break compatibility with pl/sql,
nor that we should feel free to add on warts such as $varname that are
completely at odds with the style of the rest of the language. That
doesn't do anything except produce a mess.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2011-04-05 22:34:47 | .ini support for .pgpass |
Previous Message | Merlin Moncure | 2011-04-05 21:30:58 | Re: WIP: Allow SQL-language functions to reference parameters by parameter name |