postgresql/src/backend/port
Heikki Linnakangas c6d55714ba Use the new shmem allocation functions in a few core subsystems
These subsystems have some complicating properties, making them
slightly harder to convert than most:

- The initialization callbacks of some of these subsystems have
  dependencies, i.e. they need to be initialized in the right order.

- The ProcGlobal pointer still needs to be inherited by the
  BackendParameters mechanism on EXEC_BACKEND builds, because
  ProcGlobal is required by InitProcess() to get a PGPROC entry, and
  the PGPROC entry is required to use LWLocks, and usually attaching
  to shared memory areas requires the use of LWLocks.

- Similarly, ProcSignal pointer still needs to be handled by
  BackendParameters, because query cancellation connections access it
  without calling InitProcess

Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail.com
2026-04-06 02:12:59 +03:00
..
aix Restore AIX support. 2026-02-23 13:34:22 -05:00
tas Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
win32 Disable warnings in system headers in MSVC 2026-03-25 15:03:52 +01:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
atomics.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
Makefile Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
posix_sema.c Use the new shmem allocation functions in a few core subsystems 2026-04-06 02:12:59 +03:00
sysv_sema.c Use the new shmem allocation functions in a few core subsystems 2026-04-06 02:12:59 +03:00
sysv_shmem.c Move shmem allocator's fields from PGShmemHeader to its own struct 2026-01-30 18:22:56 +02:00
win32_sema.c Use the new shmem allocation functions in a few core subsystems 2026-04-06 02:12:59 +03:00
win32_shmem.c Move shmem allocator's fields from PGShmemHeader to its own struct 2026-01-30 18:22:56 +02:00