diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-01-17 15:44:10 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-01-17 15:44:10 +0200 |
commit | 2b53a462cff0074f5bf1675ad58ca95190c4bcd0 (patch) | |
tree | 3cdec58ba7b0f33d8d838b27c23ffac97bc489d6 /src/backend/tcop/postgres.c | |
parent | 7cfa154d15c4a98bea0cfe26b2c78094a094650f (diff) | |
download | postgresql-2b53a462cff0074f5bf1675ad58ca95190c4bcd0.tar.gz postgresql-2b53a462cff0074f5bf1675ad58ca95190c4bcd0.zip |
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
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions