diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-02-24 20:20:21 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-02-24 20:20:21 +0000 |
commit | a833c441fd3cb92bb9cb169a6e73df8f1c6ffe95 (patch) | |
tree | 0e8e50cc4634f779c9d0f1504ca094ddf6a74ed4 /src/include/commands/dbcommands.h | |
parent | f66f7a542f862c0f5f6ca70af38f1ffc743c96cd (diff) |
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.
Diffstat (limited to 'src/include/commands/dbcommands.h')
-rw-r--r-- | src/include/commands/dbcommands.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h index 23c68d3c350..0636130c2e1 100644 --- a/src/include/commands/dbcommands.h +++ b/src/include/commands/dbcommands.h @@ -7,15 +7,16 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: dbcommands.h,v 1.19 2001/11/05 17:46:33 momjian Exp $ + * $Id: dbcommands.h,v 1.20 2002/02/24 20:20:21 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef DBCOMMANDS_H #define DBCOMMANDS_H -extern void createdb(const char *dbname, const char *dbpath, - const char *dbtemplate, int encoding); +extern void createdb(const char *dbname, const char *dbowner, + const char *dbpath, const char *dbtemplate, + int encoding); extern void dropdb(const char *dbname); #endif /* DBCOMMANDS_H */ |