From cfbfdc557d166ec559668d18d9769544f3c4fbbc Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 26 May 2004 13:57:04 +0000 Subject: 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 --- doc/src/sgml/ref/alter_database.sgml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/alter_database.sgml b/doc/src/sgml/ref/alter_database.sgml index aa34fac9f05..86093712f88 100644 --- a/doc/src/sgml/ref/alter_database.sgml +++ b/doc/src/sgml/ref/alter_database.sgml @@ -1,5 +1,5 @@ @@ -23,6 +23,8 @@ PostgreSQL documentation ALTER DATABASE name SET parameter { TO | = } { value | DEFAULT } ALTER DATABASE name RESET parameter +ALTER DATABASE name OWNER TO new_owner + ALTER DATABASE name RENAME TO newname @@ -54,6 +56,11 @@ ALTER DATABASE name RENAME TO + + + The fourth form changes the owner of the database. Only a superuser + can change the database's owner. + -- cgit v1.2.3