]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commit73ed2a5607b88b018c3e1cbdc9ea4623695a7743
tree750071cb30134aa5e6c56d6f10e3651d0ba508c4
parent282a62e2fb02497accb98acca2ee95caf54416e2
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