Re: Current enums patch

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tom Dunstan <pgsql(at)tomd(dot)cc>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Current enums patch
Date: 2007-04-01 13:46:45
Message-ID: 460FB7C5.6010007@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
> enum_first, enum_last: these return ANYENUM but violate the rule that
> a polymorphic-result function must have a polymorphic input argument
> from which the parser may deduce the actual output type.
>

Is this a tragedy when the supplied parameter gives the result type
directly?

If it really is, maybe we should return text instead of the enum
directly (or array of text in the case of enum_range).

cheers

andrew

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Dunstan 2007-04-01 14:27:27 Re: Current enums patch
Previous Message Magnus Hagander 2007-04-01 13:25:58 Re: bgwriter stats