Improve documentation about PRIMARY KEY constraints.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Feb 2016 21:02:44 +0000 (16:02 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Feb 2016 21:02:44 +0000 (16:02 -0500)
commitc477e84fe2471cb675234fce75cd6bb4bc2cf481
treeedae42dba0111b3dcfe6557ef49a7eb944f332c0
parentcc2ca9319a5dbe89ea47d87944650e65e3bb4ce8
Improve documentation about PRIMARY KEY constraints.

Get rid of the false implication that PRIMARY KEY is exactly equivalent to
UNIQUE + NOT NULL.  That was more-or-less true at one time in our
implementation, but the standard doesn't say that, and we've grown various
features (many of them required by spec) that treat a pkey differently from
less-formal constraints.  Per recent discussion on pgsql-general.

I failed to resist the temptation to do some other wordsmithing in the
same area.
doc/src/sgml/ddl.sgml
doc/src/sgml/ref/create_table.sgml