pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6016: Documentation makes inappropriate reference to boolean logic
2+ messages / 2 participants
[nested] [flat]

* BUG #6016: Documentation makes inappropriate reference to boolean logic
@ 2011-05-09 13:03  asuffield@acunu.com
  0 siblings, 1 reply; 2+ messages in thread

From: asuffield@acunu.com @ 2011-05-09 13:03 UTC (permalink / raw)
  To: pgsql-bugs


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)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6016: Documentation makes inappropriate reference to boolean logic
@ 2011-05-10 01:04  Bruce Momjian <bruce@momjian.us>
  parent: asuffield@acunu.com
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2011-05-10 01:04 UTC (permalink / raw)
  To: asuffield@acunu.com; +Cc: pgsql-bugs

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) download 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 **** <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">
^ permalink raw reply [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-05-10 01:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-05-09 13:03 BUG #6016: Documentation makes inappropriate reference to boolean logic asuffield@acunu.com
2011-05-10 01:04 ` Bruce Momjian <bruce@momjian.us>

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