]> granicus.if.org Git - postgresql/commit
Improve documentation about CREATE TABLE ... LIKE.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jul 2016 17:26:58 +0000 (13:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jul 2016 17:26:58 +0000 (13:26 -0400)
commit46b773d4fe0f0c880a1073cb5366efa02efa8ef8
tree765dec4907b86c82048cba3589680b8ad5090b7e
parentd9e74959a7fabe57e38bdda430aa662445bd1dd6
Improve documentation about CREATE TABLE ... LIKE.

The docs failed to explain that LIKE INCLUDING INDEXES would not preserve
the names of indexes and associated constraints.  Also, it wasn't mentioned
that EXCLUDE constraints would be copied by this option.  The latter
oversight seems enough of a documentation bug to justify back-patching.

In passing, do some minor copy-editing in the same area, and add an entry
for LIKE under "Compatibility", since it's not exactly a faithful
implementation of the standard's feature.

Discussion: <20160728151154.AABE64016B@smtp.hushmail.com>
doc/src/sgml/ref/create_table.sgml
src/backend/parser/parse_utilcmd.c