Re: WIP: default values for function parameters

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WIP: default values for function parameters
Дата
Msg-id 17460.1229234159@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WIP: default values for function parameters  ("Greg Stark" <stark@enterprisedb.com>)
Ответы Re: WIP: default values for function parameters  ("David E. Wheeler" <david@kineticode.com>)
Список pgsql-hackers
"Greg Stark" <stark@enterprisedb.com> writes:
> On Sun, Dec 14, 2008 at 1:42 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>>> What if relabeling support were to spread some more?
>> 
>> The only example I can think of besides XML is JSON.  There might be a
>> few more.  Basically, relabelling is a handy shortcut when you are
>> serializing data and want to avoid specifying a list of columns and an
>> (almost) identical list of labels.

> The whole relabeling thing seems like a seriously silly idea.

I wouldn't say that it's silly.  What I do say is that it makes no sense
to imagine that it would be used at the same time as named parameters.
The entire point of something like XMLELEMENT is that it takes a list of
undifferentiated parameters, which therefore do not need to have names
so far as the function is concerned.
        regards, tom lane


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

Предыдущее
От: "Robert Haas"
Дата:
Сообщение: Re: Sync Rep: First Thoughts on Code
Следующее
От: James Mansion
Дата:
Сообщение: Re: Mostly Harmless: Welcoming our C++ friends