Re: WIP: default values for function parameters

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: WIP: default values for function parameters
Дата
Msg-id 9405E2FD-CB0D-4369-A36F-63970E4E8173@kineticode.com
обсуждение исходный текст
Ответ на Re: WIP: default values for function parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: WIP: default values for function parameters  (Decibel! <decibel@decibel.org>)
Список pgsql-hackers
On Nov 30, 2008, at 6:49 PM, Tom Lane wrote:

> Peter Eisentraut <peter_e@gmx.net> writes:
>> There are two ways to fix this, both having some validity:
>
>> 1. We create a second version of pg_get_function_arguments() that  
>> produces
>> arguments without default values decoration.  This is probably the
>> technically sound thing to do.
>
> Yes.  I think that the argument for allowing parameter names in  
> commands
> like ALTER FUNCTION is that the user might consider them part of the
> function's identity.  This can hardly be claimed for default values.

Agreed, default values should not be a part of function signatures,  
although it might be nice if ALTER FUNCTION to allow default values to  
be changed.

Best,

David


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: WIP: default values for function parameters
Следующее
От: "David Rowley"
Дата:
Сообщение: Re: Windowing Function Patch Review -> Standard Conformance