Re: variadic flag doesn't work with "any" type - Mailing list pgsql-bugs

From Robert Haas
Subject Re: variadic flag doesn't work with "any" type
Date
Msg-id AANLkTimS9FpSsJR2xAKyzUBB2xqgCrPD1SZ0sQAJ4y+q@mail.gmail.com
Whole thread Raw
In response to Re: variadic flag doesn't work with "any" type  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: tushar
Date:
Subject: Re: BUG #5789: asking password
Next
From: Jorge Augusto Meira
Date:
Subject: Re: Problems with max_connections parameter