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: Add comment to explain why PGReserveSemaphores() is called early
Date: Thu, 06 Nov 2025 12:46:10 +0000
Message-ID: <E1vGzNS-005IKt-0f@gemulon.postgresql.org> (raw)

Add comment to explain why PGReserveSemaphores() is called early

Before commit e25626677f, PGReserveSemaphores() had to be called
before SpinlockSemaInit() because spinlocks were implemented using
semaphores on some platforms (--disable-spinlocks). Add a comment
explaining that.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAExHW5seSZpPx-znjidVZNzdagGHOk06F+Ds88MpPUbxd1kTaA@mail.gmail...
Backpatch-to: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/75ec47c38bcf8777164cf91885eb907eb3fc369b

Modified Files
--------------
src/backend/storage/ipc/ipci.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)



view thread (2+ messages)

Message-ID: <E1vGzNS-005IKt-0f@gemulon.postgresql.org>
Permalink:  ../E1vGzNS-005IKt-0f@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vGzNS-005IKt-0f@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: Add comment to explain why PGReserveSemaphores() is called early
  In-Reply-To: <E1vGzNS-005IKt-0f@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