Re: Current enums patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Current enums patch
Дата
Msg-id 10650.1175469637@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Current enums patch  (Tom Dunstan <pgsql@tomd.cc>)
Ответы Re: Current enums patch
Список 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 по дате отправления:

Предыдущее
От: Tom Dunstan
Дата:
Сообщение: Re: Current enums patch
Следующее
От: Tom Dunstan
Дата:
Сообщение: Re: Current enums patch