]> 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)
commit65f1510a82a2e792b8b0c4ffacdb4e996410d943
treee8d6976ddea7b42cd00c555bd724744ae3a1b6f8
parent82406d6ff1aa9f2e77536d91492a2d2b7e20b5c7
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