PostgreSQL Source Code git master
Loading...
Searching...
No Matches
dbcommands.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * dbcommands.h
4 * Database management commands (create/drop database).
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/commands/dbcommands.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef DBCOMMANDS_H
15#define DBCOMMANDS_H
16
18#include "parser/parse_node.h"
19
20extern Oid createdb(ParseState *pstate, const CreatedbStmt *stmt);
21extern void dropdb(const char *dbname, bool missing_ok, bool force);
22extern void DropDatabase(ParseState *pstate, DropdbStmt *stmt);
23extern ObjectAddress RenameDatabase(const char *oldname, const char *newname);
28
29extern bool have_createdb_privilege(void);
30
31extern void check_encoding_locale_matches(int encoding, const char *collate, const char *ctype);
32
33#endif /* DBCOMMANDS_H */
ObjectAddress AlterDatabaseRefreshColl(AlterDatabaseRefreshCollStmt *stmt)
bool have_createdb_privilege(void)
ObjectAddress RenameDatabase(const char *oldname, const char *newname)
ObjectAddress AlterDatabaseOwner(const char *dbname, Oid newOwnerId)
void check_encoding_locale_matches(int encoding, const char *collate, const char *ctype)
Oid createdb(ParseState *pstate, const CreatedbStmt *stmt)
Definition dbcommands.c:685
Oid AlterDatabase(ParseState *pstate, AlterDatabaseStmt *stmt, bool isTopLevel)
void DropDatabase(ParseState *pstate, DropdbStmt *stmt)
void dropdb(const char *dbname, bool missing_ok, bool force)
Oid AlterDatabaseSet(AlterDatabaseSetStmt *stmt)
#define stmt
static char * encoding
Definition initdb.c:139
unsigned int Oid
static int fb(int x)
char * dbname
Definition streamutil.c:49