Re: Function proposal to find the type of a datum

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function proposal to find the type of a datum
Дата
Msg-id 25396.1170433066@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Function proposal to find the type of a datum  (Kate F <kate@cats.meow.at>)
Ответы Re: Function proposal to find the type of a datum
Список pgsql-hackers
Kate F <kate@cats.meow.at> writes:
> (And whatever the decision regarding ANYELEMENT of, I believe this
> should behave the same as IS OF)

In the light of morning I think it may be a non-problem.  The way that a
plpgsql function with an ANYELEMENT parameter really works is that on
first invocation with a parameter of a specific type, we generate a new
parse-tree on the fly with the parameter being taken as of that type.
So the IS OF or equivalent operation would never see ANYELEMENT, and
there's nothing to "look through".  (You might check this by seeing if
IS OF behaves sanely, before you go and spend time on a type_of function
...)
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: --enable-debug does not work with gcc
Следующее
От: Kate F
Дата:
Сообщение: Re: Function proposal to find the type of a datum