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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b59ca98209d45f5689fe9de22a7429d4cf09d40c
Modified Files
--------------
doc/src/sgml/ref/create_table.sgml | 2 +-
src/backend/parser/parse_utilcmd.c | 34 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 14 +++++----
src/test/regress/sql/create_table_like.sql | 4 ++-
4 files changed, 37 insertions(+), 17 deletions(-)