From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: RfD: more powerful "any" types |
Date: | 2009-09-08 17:48:01 |
Message-ID: | 20090908174801.GL3738@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Otto | 2009-09-08 17:56:22 | Re: More Snow Leopard fun: multiarch problems while building plperl |
Previous Message | Tom Lane | 2009-09-08 17:32:22 | Re: RfD: more powerful "any" types |