1/*-------------------------------------------------------------------------
2 *
3 * schemacmds.h
4 * prototypes for schemacmds.c.
5 *
6 *
7 * Portions Copyright (c) 1996-2019, 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
21extern Oid CreateSchemaCommand(CreateSchemaStmt *parsetree,
22 const char *queryString,
23 int stmt_location, int stmt_len);
24
25extern void RemoveSchemaById(Oid schemaOid);
26
27extern ObjectAddress RenameSchema(const char *oldname, const char *newname);
28extern ObjectAddress AlterSchemaOwner(const char *name, Oid newOwnerId);
29extern void AlterSchemaOwner_oid(Oid schemaOid, Oid newOwnerId);
30
31#endif /* SCHEMACMDS_H */
32