Re: RfD: more powerful "any" types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: RfD: more powerful "any" types
Date
Msg-id 6711.1252610132@sss.pgh.pa.us
Whole thread Raw
In response to Re: RfD: more powerful "any" types  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: RfD: more powerful "any" types
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Sep 10, 2009 at 2:42 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 2. Come up with some way to do the equivalent of "variadic any[]",
>> ie, a variable number of not-all-the-same-type arguments. �(This isn't
>> just a type-system problem, there's also the question of how the type
>> information would be passed at runtime. �IIRC we have a solution at the
>> C level but not for PLs.)

> This also seems like a good idea.  Will pg_typeof() work for PL/pgsql?

pg_typeof() applied to what?  The existing approach assumes we can make
an array out of the variadic parameters, which isn't going to be the
case here.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: RfD: more powerful "any" types
Next
From: Pavel Stehule
Date:
Subject: Re: RfD: more powerful "any" types