mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user