diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 20bf2ea9fa2..fa365a4149b 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -2751,13 +2751,34 @@ P years-months-days < PostgreSQL provides the - standard SQL type boolean. - boolean can have one of only two states: + standard SQL type boolean; + see . + The boolean type can have one of only two states: true or false. A third state, unknown, is represented by the SQL null value. + + Boolean Data Type + + + + Name + Storage Size + Description + + + + + boolean + 1 byte + state of true of false + + + +
+ Valid literal values for the true state are: @@ -2786,6 +2807,12 @@ P years-months-days < (SQL-compliant) usage. + + shows that + boolean values are output using the letters + t and f. + + Using the <type>boolean</type> type @@ -2805,16 +2832,6 @@ SELECT * FROM test1 WHERE a; t | sic est - - - shows that - boolean values are output using the letters - t and f. - - - - boolean uses 1 byte of storage. -