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/[email protected] Backpatch-through: v14 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4cf9ef670e4cb6c73aeaec8c1939f4aa26358353 Modified Files -------------- src/backend/utils/activity/backend_status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
