pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix incorrect assertion bound in WaitForLSN()
Date: Thu, 04 Dec 2025 08:55:52 +0000
Message-ID: <E1vR57v-002jVa-22@gemulon.postgresql.org> (raw)

Fix incorrect assertion bound in WaitForLSN()

The assertion checking MyProcNumber used MaxBackends as the upper
bound, but the procInfos array is allocated with size
MaxBackends + NUM_AUXILIARY_PROCS. This inconsistency would cause
a false assertion failure if an auxiliary process calls WaitForLSN().

Author: Xuneng Zhou <xunengzhou@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d6ef8ee3ee29ffa404bcd920e02fb4b196e07b0d

Modified Files
--------------
src/backend/access/transam/xlogwait.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1vR57v-002jVa-22@gemulon.postgresql.org>
Permalink:  ../E1vR57v-002jVa-22@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vR57v-002jVa-22@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix incorrect assertion bound in WaitForLSN()
  In-Reply-To: <E1vR57v-002jVa-22@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