]> 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)
commitddcc256caf5523d5b856b2f461178f2711bcd345
tree8892e9a5ae5be0a46e4fa68107385907bcf9ccee
parent3d6c9888900a31553720b241f2beb7ca2cd826d2
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