]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove PG_MMAP_FLAGS from mem.h
authorMichael Paquier <michael@paquier.xyz>
Mon, 26 Jan 2026 01:52:02 +0000 (10:52 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 26 Jan 2026 01:52:02 +0000 (10:52 +0900)
commitc100340729b66dc46d4f9d68a794957bf2c468d8
treed8890949d2e6fe1d65d4ed0fa071f118d04105b9
parent83a53572a6fc9f83276d24d8c2747b3d5ce49440
Remove PG_MMAP_FLAGS from mem.h

Based on name of the macro, it was implied that it could be used for all
mmap() calls on portability grounds.  However, its use is limited to
sysv_shmem.c, for CreateAnonymousSegment().  This commit removes the
declaration, reducing the confusion around it as a portability tweak,
being limited to SysV-style shared memory.

This macro has been introduced in b0fc0df9364d for sysv_shmem.c,
originally.  It has been moved to mem.h in 0ac5e5a7e152 a bit later.

Suggested by: Peter Eisentraut <peter@eisentraut.org>
Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://postgr.es/m/CAExHW5vTWABxuM5fbQcFkGuTLwaxuZDEE2vtx2WuMUWk6JnF4g@mail.gmail.com
Discussion: https://postgr.es/m/12add41a-7625-4639-a394-a5563e349322@eisentraut.org
src/backend/port/sysv_shmem.c
src/include/portability/mem.h