diff options
Diffstat (limited to 'src/backend/commands')
| -rw-r--r-- | src/backend/commands/cluster.c | 6 | ||||
| -rw-r--r-- | src/backend/commands/indexcmds.c | 2 | 
2 files changed, 7 insertions, 1 deletions
| diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 61020dcbe74..153ed9a516b 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -1360,6 +1360,12 @@ finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,  	 * advantage to the other order anyway because this is all transactional,  	 * so no chance to reclaim disk space before commit.  We do not need a  	 * final CommandCounterIncrement() because reindex_relation does it. +	 * +	 * Note: because index_build is called via reindex_relation, it will never +	 * set indcheckxmin true for the indexes.  This is OK even though in some +	 * sense we are building new indexes rather than rebuilding existing ones, +	 * because the new heap won't contain any HOT chains at all, let alone +	 * broken ones, so it can't be necessary to set indcheckxmin.  	 */  	reindex_flags = REINDEX_SUPPRESS_INDEX_USE;  	if (check_constraints) diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index a129511128b..775aba34922 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -584,7 +584,7 @@ DefineIndex(RangeVar *heapRelation,  	indexInfo->ii_BrokenHotChain = false;  	/* Now build the index */ -	index_build(rel, indexRelation, indexInfo, primary); +	index_build(rel, indexRelation, indexInfo, primary, false);  	/* Close both the relations, but keep the locks */  	heap_close(rel, NoLock); | 
