Re: variadic flag doesn't work with "any" type

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: variadic flag doesn't work with "any" type
Дата
Msg-id AANLkTimS9FpSsJR2xAKyzUBB2xqgCrPD1SZ0sQAJ4y+q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: variadic flag doesn't work with "any" type  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-bugs
On Fri, Dec 10, 2010 at 2:44 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> 2010/12/10 Tom Lane <tgl@sss.pgh.pa.us>:
>> Pavel Stehule <pavel.stehule@gmail.com> writes:
>>> 2010/12/9 Tom Lane <tgl@sss.pgh.pa.us>:
>>>> What exactly is the use-case for that?
>>
>>> I am working on function that can help with record updating. It's
>>> based on polymorphic types. I would to allow a multiple modification
>>> per one call - like UPDATE statement does.
>>> some like:
>>> record_set_fields(anyelement, key text, value "any" [, key text, value
>>> "any" [..]]) returns anyelement
>>
>> OK, makes sense, since you don't want to constrain the values to be all
>> the same datatype.
>
> ok, can I send a patch?

In the part of Tom's email you didn't quote, he wrote "this can't
work".  Did you miss that part?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: tushar
Дата:
Сообщение: Re: BUG #5789: asking password
Следующее
От: Jorge Augusto Meira
Дата:
Сообщение: Re: Problems with max_connections parameter