mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Add ALTER object SET SCHEMA capability for a limited but useful set of
object kinds (tables, functions, types). Documentation is not here yet. Original code by Bernd Helmle, extensive rework by Bruce Momjian and Tom Lane.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.287 2005/07/31 17:19:21 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.288 2005/08/01 04:03:58 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1477,15 +1477,30 @@ typedef struct RemoveOpClassStmt
|
||||
typedef struct RenameStmt
|
||||
{
|
||||
NodeTag type;
|
||||
ObjectType renameType; /* OBJECT_TABLE, OBJECT_COLUMN, etc */
|
||||
RangeVar *relation; /* in case it's a table */
|
||||
List *object; /* in case it's some other object */
|
||||
List *objarg; /* argument types, if applicable */
|
||||
char *subname; /* name of contained object (column, rule,
|
||||
* trigger, etc) */
|
||||
char *newname; /* the new name */
|
||||
ObjectType renameType; /* OBJECT_TABLE, OBJECT_COLUMN, etc */
|
||||
} RenameStmt;
|
||||
|
||||
/* ----------------------
|
||||
* ALTER object SET SCHEMA Statement
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct AlterObjectSchemaStmt
|
||||
{
|
||||
NodeTag type;
|
||||
ObjectType objectType; /* OBJECT_TABLE, OBJECT_TYPE, etc */
|
||||
RangeVar *relation; /* in case it's a table */
|
||||
List *object; /* in case it's some other object */
|
||||
List *objarg; /* argument types, if applicable */
|
||||
char *addname; /* additional name if needed */
|
||||
char *newschema; /* the new schema */
|
||||
} AlterObjectSchemaStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Alter Object Owner Statement
|
||||
* ----------------------
|
||||
@@ -1493,12 +1508,12 @@ typedef struct RenameStmt
|
||||
typedef struct AlterOwnerStmt
|
||||
{
|
||||
NodeTag type;
|
||||
ObjectType objectType; /* OBJECT_TABLE, OBJECT_TYPE, etc */
|
||||
RangeVar *relation; /* in case it's a table */
|
||||
List *object; /* in case it's some other object */
|
||||
List *objarg; /* argument types, if applicable */
|
||||
char *addname; /* additional name if needed */
|
||||
char *newowner; /* the new owner */
|
||||
ObjectType objectType; /* OBJECT_TABLE, OBJECT_TYPE, etc */
|
||||
} AlterOwnerStmt;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user