Re: shmem_startup_hook called twice on Windows

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-09-08T21:45:43Z
Lists: pgsql-hackers

Attachments

On Mon, Sep 08, 2025 at 04:31:43PM -0500, Sami Imseih wrote:
> I still think we need to mention EXEC_BACKEND somehow.  The way it's done
> in [0], it says "On Windows (and anywhere else where EXEC_BACKEND is
> defined)"
> 
> So we do have precedent of mentioning EXEC_BACKEND in docs, and it’s
> clearer than the ambiguity of saying 'on some builds'/'in other builds'.

Added in v2.

-- 
nathan

Commits

  1. Fix documentation for shmem_startup_hook.

  2. test_slru: Fix LWLock tranche allocation in EXEC_BACKEND builds.

  3. doc: Reorganize section for shared memory and LWLocks.

  4. Refactor CreateSharedMemoryAndSemaphores