PostgreSQL Source Code  git master
schemacmds.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * schemacmds.h
4  * prototypes for schemacmds.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/commands/schemacmds.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 
15 #ifndef SCHEMACMDS_H
16 #define SCHEMACMDS_H
17 
18 #include "catalog/objectaddress.h"
19 #include "nodes/parsenodes.h"
20 
21 extern Oid CreateSchemaCommand(CreateSchemaStmt *parsetree,
22  const char *queryString,
23  int stmt_location, int stmt_len);
24 
25 extern void RemoveSchemaById(Oid schemaOid);
26 
27 extern ObjectAddress RenameSchema(const char *oldname, const char *newname);
28 extern ObjectAddress AlterSchemaOwner(const char *name, Oid newOwnerId);
29 extern void AlterSchemaOwner_oid(Oid schemaOid, Oid newOwnerId);
30 
31 #endif /* SCHEMACMDS_H */
ObjectAddress RenameSchema(const char *oldname, const char *newname)
Definition: schemacmds.c:242
unsigned int Oid
Definition: postgres_ext.h:31
void AlterSchemaOwner_oid(Oid schemaOid, Oid newOwnerId)
Definition: schemacmds.c:298
ObjectAddress AlterSchemaOwner(const char *name, Oid newOwnerId)
Definition: schemacmds.c:321
const char * name
Definition: encode.c:521
Oid CreateSchemaCommand(CreateSchemaStmt *parsetree, const char *queryString, int stmt_location, int stmt_len)
Definition: schemacmds.c:51
void RemoveSchemaById(Oid schemaOid)
Definition: schemacmds.c:218