mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Type table feature
This adds the CREATE TABLE name OF type command, per SQL standard.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.459 2010/01/05 21:53:58 rhaas Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.460 2010/01/28 23:21:11 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2507,6 +2507,7 @@ _copyCreateStmt(CreateStmt *from)
|
||||
COPY_NODE_FIELD(relation);
|
||||
COPY_NODE_FIELD(tableElts);
|
||||
COPY_NODE_FIELD(inhRelations);
|
||||
COPY_NODE_FIELD(ofTypename);
|
||||
COPY_NODE_FIELD(constraints);
|
||||
COPY_NODE_FIELD(options);
|
||||
COPY_SCALAR_FIELD(oncommit);
|
||||
|
@ -22,7 +22,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.380 2010/01/05 21:53:58 rhaas Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.381 2010/01/28 23:21:11 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1099,6 +1099,7 @@ _equalCreateStmt(CreateStmt *a, CreateStmt *b)
|
||||
COMPARE_NODE_FIELD(relation);
|
||||
COMPARE_NODE_FIELD(tableElts);
|
||||
COMPARE_NODE_FIELD(inhRelations);
|
||||
COMPARE_NODE_FIELD(ofTypename);
|
||||
COMPARE_NODE_FIELD(constraints);
|
||||
COMPARE_NODE_FIELD(options);
|
||||
COMPARE_SCALAR_FIELD(oncommit);
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.380 2010/01/05 21:53:58 rhaas Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.381 2010/01/28 23:21:12 petere Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
@ -1784,6 +1784,7 @@ _outCreateStmt(StringInfo str, CreateStmt *node)
|
||||
WRITE_NODE_FIELD(relation);
|
||||
WRITE_NODE_FIELD(tableElts);
|
||||
WRITE_NODE_FIELD(inhRelations);
|
||||
WRITE_NODE_FIELD(ofTypename);
|
||||
WRITE_NODE_FIELD(constraints);
|
||||
WRITE_NODE_FIELD(options);
|
||||
WRITE_ENUM_FIELD(oncommit, OnCommitAction);
|
||||
|
Reference in New Issue
Block a user