Re: Current enums patch

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

Tom Dunstan <pgsql(at)tomd(dot)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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Dunstan 2007-04-01 23:34:33 Re: Current enums patch
Previous Message Tom Dunstan 2007-04-01 22:45:01 Re: Current enums patch