1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

Support CREATE TABLE (LIKE ...) with foreign tables and views

Composite types are not yet supported, because parserOpenTable()
rejects them.
This commit is contained in:
Peter Eisentraut
2012-01-10 21:46:29 +02:00
parent 07123dff77
commit a9f2e31cf6
4 changed files with 48 additions and 2 deletions

View File

@@ -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>