Re: PG14: "is of" vs pg_typeof

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: PG14: "is of" vs pg_typeof
Дата
Msg-id YmRl2o6ySTzBttYb@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Re: PG14: "is of" vs pg_typeof  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Am Sat, Apr 23, 2022 at 01:43:52PM -0700 schrieb Adrian Klaver:

> >    select pg_typeof('a'::text) = any(ARRAY[pg_typeof(''::text), pg_typeof(''::name)]);
> >
> >Is there anything obvious I am missing for easily
> >resurrecting the above "is of" use ?
>
> Actually it can be done as:
>
> select pg_typeof('test'::text) in ('text'::regtype, 'varchar'::regtype);

Found that, but thanks anyway.

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: PG14: "is of" vs pg_typeof
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SELECT creates millions of temp files in a single directory