diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-03-17 22:55:14 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-03-17 22:57:26 -0400 |
commit | 05f3f9c7b2922b2a064418b5cd87b372d1b73412 (patch) | |
tree | 7532a7b338b36b659ddcfba50ebfcad22852e946 /src/include/commands | |
parent | 6ac7facdd3990baf47efc124e9d7229422a06452 (diff) | |
download | postgresql-05f3f9c7b2922b2a064418b5cd87b372d1b73412.tar.gz postgresql-05f3f9c7b2922b2a064418b5cd87b372d1b73412.zip |
Extend object-access hook machinery to support post-alter events.
This also slightly widens the scope of what we support in terms of
post-create events.
KaiGai Kohei, with a few changes, mostly to the comments, by me
Diffstat (limited to 'src/include/commands')
-rw-r--r-- | src/include/commands/cluster.h | 3 | ||||
-rw-r--r-- | src/include/commands/tablecmds.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/commands/cluster.h b/src/include/commands/cluster.h index 73c701fe53e..aa6d332e9d2 100644 --- a/src/include/commands/cluster.h +++ b/src/include/commands/cluster.h @@ -23,13 +23,14 @@ extern void cluster_rel(Oid tableOid, Oid indexOid, bool recheck, bool verbose, int freeze_min_age, int freeze_table_age); extern void check_index_is_clusterable(Relation OldHeap, Oid indexOid, bool recheck, LOCKMODE lockmode); -extern void mark_index_clustered(Relation rel, Oid indexOid); +extern void mark_index_clustered(Relation rel, Oid indexOid, bool is_internal); extern Oid make_new_heap(Oid OIDOldHeap, Oid NewTableSpace); extern void finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap, bool is_system_catalog, bool swap_toast_by_content, bool check_constraints, + bool is_internal, TransactionId frozenXid, MultiXactId frozenMulti); diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h index 031c77c9efd..7b86c444f66 100644 --- a/src/include/commands/tablecmds.h +++ b/src/include/commands/tablecmds.h @@ -58,7 +58,7 @@ extern Oid RenameConstraint(RenameStmt *stmt); extern Oid RenameRelation(RenameStmt *stmt); extern void RenameRelationInternal(Oid myrelid, - const char *newrelname); + const char *newrelname, bool is_internal); extern void find_composite_type_dependencies(Oid typeOid, Relation origRelation, |