Re: [PATCHES] Function argument names - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCHES] Function argument names
Date
Msg-id 2337.24.211.141.25.1073483329.squirrel@www.dunslane.net
Whole thread Raw
List pgsql-hackers
[transferring to hackers]

Tom Lane said:
> Dennis Bjorklund <db@zigo.dhs.org> writes:
>> I've implemented function argument names,
>
> I have reviewed and applied this patch, with some editorialization.
>
>> Other languages then pl/pgsql should also work to extend, but I've not
>> looked at that. The langage sql I've planned to look at, but since
>> that language is not as separate as the others I did not want to do it
>> yet.
>
> I am not real sure what support for this should look like in SQL
> functions.  From the point of view of a SQL command inside a function,
> it seems very close to a global SQL variable, which is a notion that
> we've always shied away from.  The PL languages are more comfortable
> with such things, and should probably get fixed first.
>

It occurred to me that perhaps by analogy with NEW and OLD, we could use
ARGS.foo to refer to a parameter called "foo".

Just a thought - I'd probably accept anything reasonable to get rid of the
ugly $n notation :-)

cheers

andrew




pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: Brokenness in parsing of pg_hba.conf
Next
From: Jan Wieck
Date:
Subject: Re: Bug in new buffer freelist code