Skip site navigation (1) Skip section navigation (2)

pgsql: Allow CREATE TABLE (LIKE ...) from composite type

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow CREATE TABLE (LIKE ...) from composite type
Date: 2012-03-03 14:04:48
Message-ID: E1S3pZo-0005oj-MU@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Andrew DunstanDate: 2012-03-03 21:43:24
Subject: pgsql: Provide environment overrides for psql file locations.
Previous:From: Peter EisentrautDate: 2012-03-02 20:37:41
Subject: pgsql: Fix incorrect uses of gzFile

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group