aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-16 17:26:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-16 17:26:41 -0400
commit2d3320d3d256eed7ea3deb8383348f2021e6a247 (patch)
tree86ec092a878f1fedcc95a53553664e67f270cf9a /src/backend/commands/cluster.c
parent121f49a00e432ee9cfad7270d99504350cd1015f (diff)
downloadpostgresql-2d3320d3d256eed7ea3deb8383348f2021e6a247.tar.gz
postgresql-2d3320d3d256eed7ea3deb8383348f2021e6a247.zip
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/backend/commands/cluster.c')
-rw-r--r--src/backend/commands/cluster.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index 2cc2aaa8f64..10ec32c05de 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -1399,10 +1399,10 @@ finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
* so no chance to reclaim disk space before commit. We do not need a
* final CommandCounterIncrement() because reindex_relation does it.
*/
- reindex_flags = REINDEX_SUPPRESS_INDEX_USE;
+ reindex_flags = REINDEX_REL_SUPPRESS_INDEX_USE;
if (check_constraints)
- reindex_flags |= REINDEX_CHECK_CONSTRAINTS;
- reindex_relation(OIDOldHeap, false, reindex_flags);
+ reindex_flags |= REINDEX_REL_CHECK_CONSTRAINTS;
+ reindex_relation(OIDOldHeap, reindex_flags);
/* Destroy new heap with old filenode */
object.classId = RelationRelationId;