Re: 0/1 vs true/false

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 0/1 vs true/false
Дата
Msg-id 13020.1058971739@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 0/1 vs true/false  (Franco Bruno Borghesi <franco@akyasociados.com.ar>)
Ответы Re: 0/1 vs true/false  (Franco Bruno Borghesi <franco@akyasociados.com.ar>)
Список pgsql-general
Franco Bruno Borghesi <franco@akyasociados.com.ar> writes:
> This makes me wonder, what about 't' and 'f'?... will they disappear in
> newer versions of postgreSQL?

No.  See my comment about I/O representations being outside the spec.
There is no inconsistency in the following examples:

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

regression=# select t;
ERROR:  attribute "t" not found
regression=# select 't'::boolean;
 bool
------
 t
(1 row)

regression=# select '1'::boolean;
 bool
------
 t
(1 row)


            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Performance hit of foreign key constraints?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Performance hit of foreign key constraints?