Re: Unnecessary casts in pg_cast

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unnecessary casts in pg_cast
Дата
Msg-id 17480.1194971478@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Unnecessary casts in pg_cast  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> Why do we need assignment casts from cidr, inet, bool, and xml to
> text?

Because these cast conversion functions act differently from the datatype
output functions, eg

regression=# select true;bool 
------t
(1 row)

regression=# select true::text;text 
------true
(1 row)

        regards, tom lane


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

Предыдущее
От: "Jignesh K. Shah"
Дата:
Сообщение: LDC - Load Distributed Checkpoints with PG8.3b2 on Solaris
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: LDC - Load Distributed Checkpoints with PG8.3b2 on Solaris