mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Refactor "ALTER some-obj SET SCHEMA" implementation
Instead of having each object type implement the catalog munging independently, centralize knowledge about how to do it and expand the existing table in objectaddress.c with enough data about each object type to support this operation. Author: KaiGai Kohei Tweaks by me Reviewed by Robert Haas
This commit is contained in:
@@ -14,16 +14,13 @@
|
||||
#ifndef ALTER_H
|
||||
#define ALTER_H
|
||||
|
||||
#include "utils/acl.h"
|
||||
#include "nodes/parsenodes.h"
|
||||
#include "utils/relcache.h"
|
||||
|
||||
extern void ExecRenameStmt(RenameStmt *stmt);
|
||||
extern void ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt);
|
||||
extern Oid AlterObjectNamespace_oid(Oid classId, Oid objid, Oid nspOid);
|
||||
extern Oid AlterObjectNamespace(Relation rel, int oidCacheId, int nameCacheId,
|
||||
Oid objid, Oid nspOid,
|
||||
int Anum_name, int Anum_namespace, int Anum_owner,
|
||||
AclObjectKind acl_kind);
|
||||
extern Oid AlterObjectNamespace_internal(Relation rel, Oid objid, Oid nspOid);
|
||||
extern void ExecAlterOwnerStmt(AlterOwnerStmt *stmt);
|
||||
|
||||
#endif /* ALTER_H */
|
||||
|
||||
Reference in New Issue
Block a user