postgresql/src/backend/port
Thomas Munro 88cbbbfa3e Make EXEC_BACKEND more convenient on macOS.
It's hard to disable ASLR on current macOS releases, for testing with
-DEXEC_BACKEND.  You could already set the environment variable
PG_SHMEM_ADDR to something not likely to collide with mappings created
earlier in process startup.  Let's also provide a default value that
works on current releases and architectures, for developer convenience.

As noted in the pre-existing comment, this is a horrible hack, but
-DEXEC_BACKEND is only used by Unix-based PostgreSQL developers for
testing some otherwise Windows-only code paths, so it seems excusable.

Back-patch to all supported branches.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20210806032944.m4tz7j2w47mant26%40alap3.anarazel.de
2021-08-13 11:09:00 +12:00
..
aix Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
hpux Redefine Datum as uintptr_t, instead of unsigned long. 2009-12-31 19:41:37 +00:00
tas Update copyright for 2021 2021-01-02 13:06:25 -05:00
win32 Use correct format placeholder for WSAGetLastError() 2021-04-23 14:21:37 +02:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
atomics.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
posix_sema.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
sysv_sema.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
sysv_shmem.c Make EXEC_BACKEND more convenient on macOS. 2021-08-13 11:09:00 +12:00
win32_sema.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
win32_shmem.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00