summaryrefslogtreecommitdiff
path: root/src/include/nodes
diff options
context:
space:
mode:
authorBruce Momjian2000-09-12 05:09:57 +0000
committerBruce Momjian2000-09-12 05:09:57 +0000
commit7f171b599a50d471d4791c768b538978b4a2dc95 (patch)
tree14e781e762ae6d60898505b43a0a819dee94c36e /src/include/nodes
parent65edb541865032b5750cfe58cb8f7affbe1fc298 (diff)
This patch implements the following command:
ALTER TABLE <tablename> OWNER TO <username> Only a superuser may execute the command. -- Mark Hollomon mhh@mindspring.com
Diffstat (limited to 'src/include/nodes')
-rw-r--r--src/include/nodes/parsenodes.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 1d2a7ce813f..f6c75c19781 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.111 2000/08/11 23:46:54 tgl Exp $
+ * $Id: parsenodes.h,v 1.112 2000/09/12 05:09:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -95,11 +95,13 @@ typedef struct Query
typedef struct AlterTableStmt
{
NodeTag type;
- char subtype; /* A = add, T = alter, D = drop, C = add
- * constr, X = drop constr */
+ char subtype; /* A = add column, T = alter column, D = drop column,
+ * C = add constraint, X = drop constraint,
+ * E = add toast table,
+ * U = change owner */
char *relname; /* table to work on */
bool inh; /* recursively on children? */
- char *name; /* column or constraint name to act on */
+ char *name; /* column or constraint name to act on, or new owner */
Node *def; /* definition of new column or constraint */
int behavior; /* CASCADE or RESTRICT drop behavior */
} AlterTableStmt;