pgsql: Allow CREATE TABLE (LIKE ...) from composite type - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Allow CREATE TABLE (LIKE ...) from composite type
Date
Msg-id E1S3pZo-0005oj-MU@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix incorrect uses of gzFile
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Provide environment overrides for psql file locations.