Re: Expression of check constraint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Expression of check constraint
Дата
Msg-id 29034.1562251517@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Expression of check constraint  (Dirk Mika <Dirk.Mika@mikatiming.de>)
Список pgsql-general
Dirk Mika <Dirk.Mika@mikatiming.de> writes:
> 3.    The column ratified is of type character varying(1).  Why is it casted to text?

Type varchar in Postgres is a poor stepchild without any operators
of its own.  Text is the "native" string type and any comparison etc
will require casting varchar to text first.  It happens that the
expression decompilation code will show you those implicit casts
explicitly, but they don't really mean much.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error: rows returned by function are not all of the same row type
Следующее
От: Ashwini Singh
Дата:
Сообщение: PostgreSQL upgrade from 9.4.2 to 9.6.12