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

From David Fetter
Subject Re: RfD: more powerful "any" types
Date
Msg-id 20090908174801.GL3738@fetter.org
Whole thread Raw
In response to RfD: more powerful "any" types  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: RfD: more powerful "any" types
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: RfD: more powerful "any" types
Next
From: Jan Otto
Date:
Subject: Re: More Snow Leopard fun: multiarch problems while building plperl