pg data type bool is the boolean ,but in the documents there is no description about " bool is equal to boolean”

Поиск
Список
Период
Сортировка
От yanliang lei
Тема pg data type bool is the boolean ,but in the documents there is no description about " bool is equal to boolean”
Дата
Msg-id 2e72e712.1b50.18886efce73.Coremail.msdnchina@163.com
обсуждение исходный текст
Ответы Re: pg data type bool is the boolean ,but in the documents there is no description about " bool is equal to boolean”  (Erik Wienhold <ewie@ewie.name>)
Список pgsql-docs

postgres=# create table test_1(c1 bool,c2 int);

CREATE TABLE

postgres=# \d+ test_1;

                                         Table "public.test_1"

 Column |  Type   | Collation | Nullable | Default | Storage | Compression | Stats target | Description 

--------+---------+-----------+----------+---------+---------+-------------+--------------+-------------

 c1     | boolean |           |          |         | plain   |             |              | 

 c2     | integer |           |          |         | plain   |             |              | 

Access method: heap


postgres=# 


in the create table statement ,there is bool data type,
in the \d+ test_1, there is boolean data type,
PostgreSQL use format_type function to convert bool to boolean.

in other words,  bool datatype  is equal to boolean datatype,
 but  the documents(https://www.postgresql.org/docs/15/datatype-boolean.html ) there is no description about " bool dataype  is equal to boolean datatype ”

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

Предыдущее
От: Lorusso Domenico
Дата:
Сообщение: Re: pass open cursor via USING in execute staement
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: pg data type bool is the boolean ,but in the documents there is no description about " bool is equal to boolean”