From: Bruce Momjian <bruce@momjian.us>
To: asuffield@acunu.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6016: Documentation makes inappropriate reference to boolean logic
Date: Mon, 9 May 2011 21:04:37 -0400 (EDT)
Message-ID: <201105100104.p4A14bA24308@momjian.us> (raw)
In-Reply-To: <201105091303.p49D35t8004025@wwwmaster.postgresql.org>
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 <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
Attachments:/rtmp/diff (text/x-diff, 787B) downloaddiff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgmlnew file mode 100644index 657835c..c1a34fb
*** a/doc/src/sgml/func.sgml
--- b/doc/src/sgml/func.sgml
***************
*** 82,89 ****
<member><literal>NOT</></member>
</simplelist>
! <acronym>SQL</acronym> uses a three-valued Boolean logic where the null value represents
! <quote>unknown</quote>. Observe the following truth tables:
<informaltable>
<tgroup cols="4">
--- 82,90 ----
<member><literal>NOT</></member>
</simplelist>
! <acronym>SQL</acronym> uses a three-valued logic system with true,
! false, and <literal>null</>, which represents <quote>unknown</quote>.
! Observe the following truth tables:
<informaltable>
<tgroup cols="4">
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bruce@momjian.us, asuffield@acunu.com
Subject: Re: BUG #6016: Documentation makes inappropriate reference to boolean logic
In-Reply-To: <201105100104.p4A14bA24308@momjian.us>
References: <201105091303.p49D35t8004025@wwwmaster.postgresql.org> <201105100104.p4A14bA24308@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox