Re: Current enums patch - Mailing list pgsql-patches

From Tom Lane
Subject Re: Current enums patch
Date
Msg-id 10650.1175469637@sss.pgh.pa.us
Whole thread Raw
In response to Re: Current enums patch  (Tom Dunstan <pgsql@tomd.cc>)
Responses Re: Current enums patch  (Tom Dunstan <pgsql@tomd.cc>)
List pgsql-patches
Tom Dunstan <pgsql@tomd.cc> writes:
> Tom Lane wrote:
>>> ... could we
>>> have a special rule that would look for e.g. a regtype as the first
>>> parameter if the return type is generic and there are no generic parameters?
>>
>> I thought about that too but don't like it much.  The problem is mainly
>> that it can only work for a constant regtype parameter.

> OK, I give up. :) Why?

Because the whole point is that the type has to be known at parse time.

I've got it working with get_fn_expr_argtype and it seems fairly
reasonable.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Dunstan
Date:
Subject: Re: Current enums patch
Next
From: Tom Dunstan
Date:
Subject: Re: Current enums patch