summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2011-04-16 21:26:41 +0000
committerTom Lane2011-04-16 21:26:41 +0000
commit2d3320d3d256eed7ea3deb8383348f2021e6a247 (patch)
tree86ec092a878f1fedcc95a53553664e67f270cf9a /src/include
parent121f49a00e432ee9cfad7270d99504350cd1015f (diff)
Simplify reindex_relation's API.
For what seem entirely historical reasons, a bitmask "flags" argument was recently added to reindex_relation without subsuming its existing boolean argument into that bitmask. This seems a bit bizarre, so fold them together.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/index.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/catalog/index.h b/src/include/catalog/index.h
index 2ce6806e505..cc7e785cc0a 100644
--- a/src/include/catalog/index.h
+++ b/src/include/catalog/index.h
@@ -88,9 +88,12 @@ extern void validate_index(Oid heapId, Oid indexId, Snapshot snapshot);
extern void reindex_index(Oid indexId, bool skip_constraint_checks);
-#define REINDEX_CHECK_CONSTRAINTS 0x1
-#define REINDEX_SUPPRESS_INDEX_USE 0x2
-extern bool reindex_relation(Oid relid, bool toast_too, int flags);
+/* Flag bits for reindex_relation(): */
+#define REINDEX_REL_PROCESS_TOAST 0x01
+#define REINDEX_REL_SUPPRESS_INDEX_USE 0x02
+#define REINDEX_REL_CHECK_CONSTRAINTS 0x04
+
+extern bool reindex_relation(Oid relid, int flags);
extern bool ReindexIsProcessingHeap(Oid heapOid);
extern bool ReindexIsProcessingIndex(Oid indexOid);