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: Fix another portability bug in recent pgbench commit.
Date: Wed, 10 Mar 2021 10:21:06 +0000
Message-ID: <E1lJvxi-00080u-0k@gemulon.postgresql.org> (raw)

Fix another portability bug in recent pgbench commit.

Commit 547f04e7 produced errors on AIX/xlc while building plpython.  The
new code appears to be incompatible with the hack installed by commit
a11cf433.  Without access to an AIX system to check, my guess is that
_POSIX_C_SOURCE may be required for <time.h> to declare the things the
header needs to see, but plpython.h undefines it.

For now, to unbreak build farm animal hoverfly, just move the new
pg_time_usec_t support into pgbench.c.  Perhaps later we could figure
out what to rearrange to put it back into a header for wider use.

Discussion: https://postgr.es/m/CA%2BhUKG%2BP%2BjcD%3Dx9%2BagyTdWtjpOT64MYiGic%2Bcbu_TD8CV%3D6A3w%40mail.gmail.c...

Branch
------
master

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

Modified Files
--------------
src/bin/pgbench/pgbench.c            | 25 +++++++++++++++++++++++++
src/include/portability/instr_time.h | 28 ----------------------------
2 files changed, 25 insertions(+), 28 deletions(-)



Message-ID: <E1lJvxi-00080u-0k@gemulon.postgresql.org>
Permalink:  ../E1lJvxi-00080u-0k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lJvxi-00080u-0k@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: Fix another portability bug in recent pgbench commit.
  In-Reply-To: <E1lJvxi-00080u-0k@gemulon.postgresql.org>
  References: <E1lJvxi-00080u-0k@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