From caf2d69ee0f80daab7168adff3a721fbf94f7ca7 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 24 Jul 2010 12:17:35 +0000 Subject: [PATCH] Tidy up boolean data type page by Thom Brown --- doc/src/sgml/datatype.sgml | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index faf40befb1..113ca97f9a 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -2759,13 +2759,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: @@ -2794,6 +2815,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 @@ -2813,16 +2840,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. - -- 2.11.0