mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Add OWNER option to CREATE DATABASE, so superusers can create databases
on behalf of unprivileged users. Also, make '=' optional in CREATE DATABASE syntax. From Gavin Sherry, with kibitzing and docs by Tom Lane.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.125 2002/02/07 00:27:30 inoue Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.126 2002/02/24 20:20:20 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -624,8 +624,9 @@ ProcessUtility(Node *parsetree,
|
||||
|
||||
set_ps_display(commandTag = "CREATE DATABASE");
|
||||
|
||||
createdb(stmt->dbname, stmt->dbpath,
|
||||
stmt->dbtemplate, stmt->encoding);
|
||||
createdb(stmt->dbname, stmt->dbowner,
|
||||
stmt->dbpath, stmt->dbtemplate,
|
||||
stmt->encoding);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user