pgsql: Fix new pthread code to respect --disable-thread-safety.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix new pthread code to respect --disable-thread-safety.
Date: 2021-03-13 04:23:01
Message-ID: E1lKvnp-0000Xs-Qb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix new pthread code to respect --disable-thread-safety.

Don't try to compile src/port/pthread_barrier_wait.c if we opted out of
threads at configure time. Revealed by build farm member gaur, which
can't compile this code because of problems with its pthread
implementation. It shouldn't be trying to, because it's using
--disable-thread-safety.

Defect in commit 44bf3d50.

Reported-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/2568537.1615603606%40sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
configure | 145 +++++++++++++++++++++++++++++++----------------------------
configure.ac | 10 ++++-
2 files changed, 84 insertions(+), 71 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-03-13 05:06:59 pgsql: pg_amcheck: Keep trying to fix the tests.
Previous Message Amit Kapila 2021-03-13 04:20:14 pgsql: Improve FK trigger parallel-safety check added by 05c8482f7f.