pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix incorrect comment on how BackendStatusArray is indexed
Date: Wed, 17 Jan 2024 13:57:36 +0000
Message-ID: <E1rQ6QC-001r5P-Nb@gemulon.postgresql.org> (raw)

Fix incorrect comment on how BackendStatusArray is indexed

The comment was copy-pasted from the call to ProcSignalInit() in
AuxiliaryProcessMain(), which uses a similar scheme of having reserved
slots for aux processes after MaxBackends slots for backends. However,
ProcSignalInit() indexing starts from 1, whereas BackendStatusArray
starts from 0. The code is correct, but the comment was wrong.

Discussion: https://www.postgresql.org/message-id/f3ecd4cb-85ee-4e54-8278-5fabfb3a4ed0@iki.fi
Backpatch-through: v14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2b53a462cff0074f5bf1675ad58ca95190c4bcd0

Modified Files
--------------
src/backend/utils/activity/backend_status.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1rQ6QC-001r5P-Nb@gemulon.postgresql.org>
Permalink:  ../E1rQ6QC-001r5P-Nb@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rQ6QC-001r5P-Nb@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: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix incorrect comment on how BackendStatusArray is indexed
  In-Reply-To: <E1rQ6QC-001r5P-Nb@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