Re: Domains versus polymorphic functions, redux

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Domains versus polymorphic functions, redux
Дата
Msg-id 11302.1306257221@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Domains versus polymorphic functions, redux  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> On Tue, May 24, 2011 at 11:12 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 1. If a domain type is passed to an ANYARRAY argument, automatically
>> downcast it to its base type (which of course had better then be an
>> array).

> Does that mean that plpgsql %type variable declarations will see the
> base type (and miss any constraint checks?).

No, this has nothing to do with %type.  What's at stake is matching to
functions/operators that are declared to take ANYARRAY.

> #2a seems cleaner to me (superficially).  Got an example of a behavior
> you think is changed?

See my response to David Wheeler.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Domains versus polymorphic functions, redux
Следующее
От: Ibrar Ahmed
Дата:
Сообщение: "errno" not set in case of "libm" functions (HPUX)