pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix three blips with progress reporting data (heap and GIN)
Date: Tue, 06 Oct 2026 04:58:32 +0000
Message-ID: <E1xDxG4-00000000VLe-10eL@gemulon.postgresql.org> (raw)

Fix three blips with progress reporting data (heap and GIN)

This commit addresses three gaps in the error reporting data, as of:
- In _gin_parallel_merge(), for a parallel GIN build, the last key was
counted twice in the progress report.  Oversight in 8492feb98f6.
- _gin_process_worker_data() forgot to increment bs_numtuples when
trimming a list of pointers.  Oversight in b229c1016477.
- blocks_done for an index build's heap scan was incorrect for its first
block.  There was a one-off in heapam_scan_get_blocks_done(), causing
the routine to return the total number of blocks on the first block
scanned.  Oversight in ab0dfc961b6.

Manu has reported two issues.  I have come across the one in
_gin_process_worker_data() while reviewing his patches.

All of these are mostly cosmetic, leading to incorrect data reported in
the progress views for a short period of time, so no backpatch is done.

Author: Manu <manuelreyesbravo@gmail.com>
Author: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/179012373464.1732093.11171496412950256250@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3be29d9346db1d3225773e2a8e5a86b875696617

Modified Files
--------------
src/backend/access/gin/gininsert.c       | 5 +----
src/backend/access/heap/heapam_handler.c | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)



Message-ID: <E1xDxG4-00000000VLe-10eL@gemulon.postgresql.org>
Permalink:  ../E1xDxG4-00000000VLe-10eL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xDxG4-00000000VLe-10eL@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix three blips with progress reporting data (heap and GIN)
  In-Reply-To: <E1xDxG4-00000000VLe-10eL@gemulon.postgresql.org>
  References: <E1xDxG4-00000000VLe-10eL@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox