From 027824b0807ff1c26150c5acfffef7668ed07dce Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 3 Dec 2026 11:52:57 +0100 Subject: [PATCH 1/5] gininsert: Fix variable type numtuples is only used with the increment operator and then passed to a function taking an int64. Declaring it as double was a mistake. To fix, change to int64. --- src/backend/access/gin/gininsert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/gin/gininsert.c b/src/backend/access/gin/gininsert.c index cc74b28d637..38c71c044ab 100644 --- a/src/backend/access/gin/gininsert.c +++ b/src/backend/access/gin/gininsert.c @@ -1665,7 +1665,7 @@ _gin_parallel_merge(GinBuildState *state, IndexInfo *indexInfo) GinBuffer *buffer; /* GIN tuples from workers, merged by leader */ - double numtuples = 0; + int64 numtuples = 0; /* wait for workers to scan table and produce partial results */ reltuples = _gin_parallel_heapscan(state, &indexInfo->ii_BrokenHotChain); -- 2.56.0