Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4A2F81337B97 for ; Mon, 9 May 2011 22:04:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 21050-09 for ; Tue, 10 May 2011 01:04:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id C73771337B67 for ; Mon, 9 May 2011 22:04:34 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p4A14bA24308; Mon, 9 May 2011 21:04:37 -0400 (EDT) From: Bruce Momjian Message-Id: <201105100104.p4A14bA24308@momjian.us> Subject: Re: BUG #6016: Documentation makes inappropriate reference to boolean logic In-Reply-To: <201105091303.p49D35t8004025@wwwmaster.postgresql.org> To: asuffield@acunu.com Date: Mon, 9 May 2011 21:04:37 -0400 (EDT) CC: pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1304989477-4194-0_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/54 X-Sequence-Number: 30193 --ELM1304989477-4194-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" asuffield@acunu.com wrote: > > The following bug has been logged online: > > Bug reference: 6016 > Logged by: > Email address: asuffield@acunu.com > PostgreSQL version: 9 (all) > Operating system: documentation > Description: Documentation makes inappropriate reference to boolean > logic > Details: > > Documentation section 9.1 reads: > > "SQL uses a three-valued Boolean logic..." > > A "Boolean logic" is a specific thing, and all Boolean logics have 2^k > values; a 3-valued logic is not Boolean. Should read: > > "The SQL Boolean type uses a three-valued logic..." > > (Curiously, SQL99 appears to be an actual 4-valued Boolean logic) Attached patch applied to HEAD and 9.0.X. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --ELM1304989477-4194-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/diff" diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml new file mode 100644 index 657835c..c1a34fb *** a/doc/src/sgml/func.sgml --- b/doc/src/sgml/func.sgml *************** *** 82,89 **** NOT ! SQL uses a three-valued Boolean logic where the null value represents ! unknown. Observe the following truth tables: --- 82,90 ---- NOT ! SQL uses a three-valued logic system with true, ! false, and null, which represents unknown. ! Observe the following truth tables: --ELM1304989477-4194-0_--