| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2012-03-03 21:43:24 | pgsql: Provide environment overrides for psql file locations. |
| Previous Message | Peter Eisentraut | 2012-03-02 20:37:41 | pgsql: Fix incorrect uses of gzFile |