Re: [PATCHES] Function argument names
Re: [PATCHES] Function argument names
От:
"Andrew Dunstan" <andrew@dunslane.net>
Дата:
[transferring to hackers] Tom Lane said: > Dennis Bjorklund 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