Re: function_name.parameter_name

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: function_name.parameter_name
Дата
Msg-id C55B942B-913E-4332-9FC6-3E952E37FE9D@kineticode.com
обсуждение исходный текст
Ответ на Re: function_name.parameter_name  (Darren Duncan <darren@darrenduncan.net>)
Список pgsql-hackers
On Sep 8, 2010, at 3:57 PM, Darren Duncan wrote:

>> While I don't agree with the idea of providing extra names that are
>> probably mostly going to increase the confusion of someone trying to
>> understand such a system, I think this use case would be well covered by
>> synonyms.  But these would be defined by a new SQL command, say CREATE
>> SYNONYM, not by funny notation on the initial CREATE FUNCTION call.

Sounds handy.

> Yes, and having a more general solution like CREATE SYNONYM is more important to have anyway.  My "|" is simply a
syntacticshorthand for a special case of CREATE SYNONYM, with respect to schema objects, and would parse into the same
thing. I don't feel any need now for me to push this shorthand further. -- Darren Duncan 

I can't get excited about it. I'm just happy the functionality is there. I was able to both simplify my PL/pgSQL code
*and*make it much clearer what it's doing: 
 http://github.com/theory/pgxn-manager/commit/e136ccb342010e836c39dafa43b802478be445a0

That said, I'm assuming that the function-name block is really a RECORD object representing the argument signature. I
couldsee a case for PL/pgSQL just having an "ARGS" variable or something that does the same thing. Kind of like
triggershave NEW and OLD. But given that the functionality is already there, that's just gravy. Or sugar. I'm not sure
which.Sugary gravy. 

Best,

David



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: "serializable" in comments and names
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: returning multiple result sets from a stored procedure