aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-01-10 21:46:29 +0200
committerPeter Eisentraut <peter_e@gmx.net>2012-01-10 21:46:29 +0200
commita9f2e31cf653bad72debae616521130065e55077 (patch)
tree3bd085c73b3d971981871c3295a114ae98b7b7d1 /doc/src
parent07123dff778389382f08d2152742bb061d351c21 (diff)
downloadpostgresql-a9f2e31cf653bad72debae616521130065e55077.tar.gz
postgresql-a9f2e31cf653bad72debae616521130065e55077.zip
Support CREATE TABLE (LIKE ...) with foreign tables and views
Composite types are not yet supported, because parserOpenTable() rejects them.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/create_table.sgml5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml
index 97968bb9eb2..f55a0010de5 100644
--- a/doc/src/sgml/ref/create_table.sgml
+++ b/doc/src/sgml/ref/create_table.sgml
@@ -368,6 +368,11 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
If the same name is specified explicitly or in another
<literal>LIKE</literal> clause, an error is signalled.
</para>
+ <para>
+ The <literal>LIKE</literal> clause can also be used to copy columns from
+ views or foreign tables. Inapplicable options (e.g., <literal>INCLUDING
+ INDEXES</literal> from a view) are ignored.
+ </para>
</listitem>
</varlistentry>