1/*-------------------------------------------------------------------------
2 *
3 * alter.h
4 * prototypes for commands/alter.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/alter.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef ALTER_H
15#define ALTER_H
16
17#include "catalog/dependency.h"
18#include "catalog/objectaddress.h"
19#include "nodes/parsenodes.h"
20#include "utils/relcache.h"
21
22extern ObjectAddress ExecRenameStmt(RenameStmt *stmt);
23
24extern ObjectAddress ExecAlterObjectDependsStmt(AlterObjectDependsStmt *stmt,
25 ObjectAddress *refAddress);
26extern ObjectAddress ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt,
27 ObjectAddress *oldSchemaAddr);
28extern Oid AlterObjectNamespace_oid(Oid classId, Oid objid, Oid nspOid,
29 ObjectAddresses *objsMoved);
30
31extern ObjectAddress ExecAlterOwnerStmt(AlterOwnerStmt *stmt);
32extern void AlterObjectOwner_internal(Relation catalog, Oid objectId,
33 Oid new_ownerId);
34
35#endif /* ALTER_H */
36