pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make EXEC_BACKEND more convenient on macOS.
Date: Fri, 13 Aug 2021 00:05:22 +0000
Message-ID: <E1mEKhO-00063p-Kx@gemulon.postgresql.org> (raw)

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/715a8668a5f703f00b8f6cdc126381eb87205d90

Modified Files
--------------
src/backend/port/sysv_shmem.c | 10 ++++++++++
1 file changed, 10 insertions(+)



view thread (11+ messages)  latest in thread

Message-ID: <E1mEKhO-00063p-Kx@gemulon.postgresql.org>
Permalink:  ../E1mEKhO-00063p-Kx@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mEKhO-00063p-Kx@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Make EXEC_BACKEND more convenient on macOS.
  In-Reply-To: <E1mEKhO-00063p-Kx@gemulon.postgresql.org>
  References: <E1mEKhO-00063p-Kx@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox