mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
Allow CREATE TABLE (LIKE ...) from composite type
The only reason this didn't work before was that parserOpenTable() rejects composite types. So use relation_openrv() directly and manually do the errposition() setup that parserOpenTable() does.
This commit is contained in:
@ -370,7 +370,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
|
||||
</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
|
||||
views, foreign tables, or composite types. Inapplicable options (e.g., <literal>INCLUDING
|
||||
INDEXES</literal> from a view) are ignored.
|
||||
</para>
|
||||
</listitem>
|
||||
|
Reference in New Issue
Block a user