Allow CREATE TABLE (LIKE ...) from composite type
Peter Eisentraut <peter_e@gmx.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_table.sgml | modified | +1 −1 |
| src/backend/parser/parse_utilcmd.c | modified | +25 −9 |
| src/test/regress/expected/create_table_like.out | modified | +8 −6 |
| src/test/regress/sql/create_table_like.sql | modified | +3 −1 |