postgres.git / summary / log / commit / refs
commit 060eebf4179b40d8eacd56f2e6670a531f8b0733
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: Thu Nov 26 10:55:06 2026 +0000
Remove OldHeap argument from build_new_indexes()
This function didn't need the argument even when introduced by commit
28d534e2ae0a, but we failed to notice.
Author: Antonin Houska <ah@cybertec.at>
Discussion: https://postgr.es/m/109367.1781614382@localhost
src/backend/commands/repack.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/backend/commands/repack.c b/src/backend/commands/repack.c
index c70bc5b37e6..eee8b646029 100644
--- a/src/backend/commands/repack.c
+++ b/src/backend/commands/repack.c
@@ -213,7 +213,7 @@ static void rebuild_relation_finish_concurrent(Relation NewHeap, Relation OldHea
Oid identIdx,
TransactionId frozenXid,
MultiXactId cutoffMulti);
-static List *build_new_indexes(Relation NewHeap, Relation OldHeap, List *OldIndexes);
+static List *build_new_indexes(Relation NewHeap, List *OldIndexes);
static void copy_index_constraints(Relation old_index, Oid new_index_id,
Oid new_heap_id);
static void copy_attribute_defaults(Oid old_heap_oid, Oid new_heap_oid);
@@ -3462,7 +3462,7 @@ rebuild_relation_finish_concurrent(Relation NewHeap, Relation OldHeap,
* are not necessarily dangerous, but can make user confused if the
* changes they do get lost due to REPACK.)
*/
- ind_oids_new = build_new_indexes(NewHeap, OldHeap, ind_oids_old);
+ ind_oids_new = build_new_indexes(NewHeap, ind_oids_old);
/*
* The identity index in the new relation appears in the same relative
@@ -3632,17 +3632,17 @@ rebuild_relation_finish_concurrent(Relation NewHeap, Relation OldHeap,
}
/*
- * Build indexes on NewHeap according to those on OldHeap.
+ * Build indexes on NewHeap according to those on the old heap.
*
- * OldIndexes is the list of index OIDs on OldHeap. The contained indexes end
- * up locked using ShareUpdateExclusiveLock.
+ * OldIndexes is the list of index OIDs on the old heap. The contained indexes
+ * end up locked using ShareUpdateExclusiveLock.
*
* A list of OIDs of the corresponding indexes created on NewHeap is
* returned. The order of items does match, so we can use these arrays to swap
* index storage.
*/
static List *
-build_new_indexes(Relation NewHeap, Relation OldHeap, List *OldIndexes)
+build_new_indexes(Relation NewHeap, List *OldIndexes)
{
List *result = NIL;
[parent: 4244818f8add]