Improve documentation about CREATE TABLE ... LIKE.
authorTom Lane <[email protected]>
Thu, 28 Jul 2016 17:26:59 +0000 (13:26 -0400)
committerTom Lane <[email protected]>
Thu, 28 Jul 2016 17:26:59 +0000 (13:26 -0400)
commitf0795b394991874289658fb51d83dce9a11f026e
treee21cde1ef581b0378c4527e9f6d8d2786b21d454
parentce100861687353998d3f1c2b28c61447e8102c58
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