diff options
author | Thomas Munro <tmunro@postgresql.org> | 2021-08-13 10:38:22 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2021-08-13 11:10:49 +1200 |
commit | 0bfefb7dafe0019715075b6e8bf58ed5de58bffa (patch) | |
tree | 72256c53344a6aaa7f40e15fdf09d40c234c1a7b /src/backend/executor/nodeModifyTable.c | |
parent | eefa4c2b5ed647fed9795f79ed4287898fae9ce6 (diff) | |
download | postgresql-0bfefb7dafe0019715075b6e8bf58ed5de58bffa.tar.gz postgresql-0bfefb7dafe0019715075b6e8bf58ed5de58bffa.zip |
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions