summaryrefslogtreecommitdiff
path: root/src/include/nodes/parsenodes.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-26 13:57:04 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-26 13:57:04 +0000
commitcfbfdc557d166ec559668d18d9769544f3c4fbbc (patch)
treeb487d06389fcb3a304524c2cf0adfc769348c0ae /src/include/nodes/parsenodes.h
parentd0b4399d81f39decccb23fa38f772b71b51bf96a (diff)
downloadpostgresql-cfbfdc557d166ec559668d18d9769544f3c4fbbc.tar.gz
This patch implement the TODO [ALTER DATABASE foo OWNER TO bar].
It was necessary to touch in grammar and create a new node to make home to the new syntax. The command is also supported in E CPG. Doc updates are attached too. Only superusers can change the owner of the database. New owners don't need any aditional privileges. Euler Taveira de Oliveira
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r--src/include/nodes/parsenodes.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 8eceb6e59c..2943d0e9e0 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.255 2004/05/05 04:48:47 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.256 2004/05/26 13:57:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1523,6 +1523,13 @@ typedef struct CreatedbStmt
* Alter Database
* ----------------------
*/
+typedef struct AlterDbOwnerStmt
+{
+ NodeTag type;
+ char *dbname;
+ char *uname;
+} AlterDbOwnerStmt;
+
typedef struct AlterDatabaseSetStmt
{
NodeTag type;