0001-call-cleanup-in-validate_index.patch
text/x-patch
Filename: 0001-call-cleanup-in-validate_index.patch
Type: text/x-patch
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch 0001
Subject: call cleanup in validate_index
| File | + | − |
|---|---|---|
| src/backend/catalog/index.c | 2 | 0 |
From 0cf18dd53842e3809b76525867214ce8ff823f32 Mon Sep 17 00:00:00 2001 From: Tomas Vondra <tomas.vondra@postgresql.org> Date: Tue, 12 Dec 2023 12:01:07 +0100 Subject: [PATCH 1/2] call cleanup in validate_index --- src/backend/catalog/index.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index 7b186c0220b..7a0e337a418 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -3414,6 +3414,8 @@ validate_index(Oid heapId, Oid indexId, Snapshot snapshot) /* Done with tuplesort object */ tuplesort_end(state.tuplesort); + index_insert_cleanup(indexRelation, indexInfo); + elog(DEBUG2, "validate_index found %.0f heap tuples, %.0f index tuples; inserted %.0f missing tuples", state.htups, state.itups, state.tups_inserted); -- 2.42.0