From: Peter Eisentraut Date: Sat, 24 Jul 2010 12:17:35 +0000 (+0000) Subject: Tidy up boolean data type page X-Git-Tag: REL9_1_ALPHA1~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=caf2d69ee0f80daab7168adff3a721fbf94f7ca7;p=thirdparty%2Fpostgresql.git Tidy up boolean data type page by Thom Brown --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index faf40befb1a..113ca97f9a0 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. -