Re: Current enums patch - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: Current enums patch
Date
Msg-id 460FB7C5.6010007@dunslane.net
Whole thread Raw
In response to Re: Current enums patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Current enums patch  (Tom Dunstan <pgsql@tomd.cc>)
List 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



pgsql-patches by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: bgwriter stats
Next
From: Tom Dunstan
Date:
Subject: Re: Current enums patch