pgsql: Improve documentation about CREATE TABLE ... LIKE. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve documentation about CREATE TABLE ... LIKE.
Date
Msg-id E1bSp5e-0007u0-Nm@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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>

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f0795b394991874289658fb51d83dce9a11f026e

Modified Files
--------------
doc/src/sgml/ref/create_table.sgml | 51 ++++++++++++++++++++++++++------------
src/backend/parser/parse_utilcmd.c |  4 ++-
2 files changed, 38 insertions(+), 17 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Register atexit hook only once in pg_upgrade.
Next
From: Tom Lane
Date:
Subject: pgsql: Improve documentation about CREATE TABLE ... LIKE.