]> granicus.if.org Git - postgresql/commit
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)
commitabcb32d55ed8da8c158936d5a48a0c3b84bfe3ff
treed7e8737d8097ba304703737e98903fbc9e44c3f0
parentdd48a39388497e91e537cd34190be2dcc6179296
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