pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Probe for preadv/pwritev in a more macOS-friendly way.
Date: Mon, 12 Jul 2021 23:17:53 +0000
Message-ID: <E1m35BR-00063Y-Gi@gemulon.postgresql.org> (raw)

Probe for preadv/pwritev in a more macOS-friendly way.

Apple's mechanism for dealing with functions that are available
in only some OS versions confuses AC_CHECK_FUNCS, and therefore
AC_REPLACE_FUNCS.  We can use AC_CHECK_DECLS instead, so long as
we enable -Werror=unguarded-availability-new.  This allows people
compiling for macOS to control whether or not preadv/pwritev are
used by setting MACOSX_DEPLOYMENT_TARGET, rather than supplying
a back-rev SDK.  (Of course, the latter still works, too.)

James Hilliard

Discussion: https://postgr.es/m/20210122193230.25295-1-james.hilliard1@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f014b1b9bb8eda4e82c1805969dbae2b07b7d54d

Modified Files
--------------
configure                   | 166 +++++++++++++++++++++++++++++++++++++-------
configure.ac                |  11 ++-
src/include/pg_config.h.in  |  14 ++--
src/include/port/pg_iovec.h |   4 +-
src/tools/msvc/Solution.pm  |   4 +-
5 files changed, 161 insertions(+), 38 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1m35BR-00063Y-Gi@gemulon.postgresql.org>
Permalink:  ../E1m35BR-00063Y-Gi@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m35BR-00063Y-Gi@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Probe for preadv/pwritev in a more macOS-friendly way.
  In-Reply-To: <E1m35BR-00063Y-Gi@gemulon.postgresql.org>
  References: <E1m35BR-00063Y-Gi@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