Re: RfD: more powerful "any" types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RfD: more powerful "any" types
Дата
Msg-id 3337.1252516515@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: RfD: more powerful "any" types  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: RfD: more powerful "any" types  ("David E. Wheeler" <david@kineticode.com>)
Re: RfD: more powerful "any" types  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: RfD: more powerful "any" types  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Another possible example is sprintf:

> create function sprintf(text, anyelement, anyelement2, anyelement3, ...)
> returns text

> In order for this to work in general, we'd need FUNC_MAX_ARGS different
> types, which is currently defined as 100 in our code.

But here, "any" would work perfectly fine, since there's no need for
any two arguments to be tied to each other or the result.

Given that we've got away so far with only 1 instance of anyelement,
I'm not really convinced that there's a market for more than anyelement2
(and anyarray2, etc).
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: RfD: more powerful "any" types
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: RfD: more powerful "any" types