On Tue, Sep 08, 2009 at 12:12:10PM -0400, Alvaro Herrera wrote:
> Hi,
>
> I'm seeking more powerful "any" pseudotypes. In particular,
> consider a function
>
> foo(type1, type2) returns type3
>
> where type1 and type2 can be both any element type, but not
> necessarily both of the same type. Currently this cannot be made to
> work: you could try to write the function this way:
>
> foo(anyelement, anyelement) returns anyelement
I'd like to see pseudo-types like ANYNUMERIC, and allow it to take an
array decorator, which would really help for math-ish functions. Not
sure where that fits in this discussion.
Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate