Re: Threading in BGWorkers (!) - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Threading in BGWorkers (!)
Date
Msg-id 20200730184410.rffbx73mtd3x6lfc@alap3.anarazel.de
Whole thread Raw
In response to Re: Threading in BGWorkers (!)  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
Hi,

On 2020-07-29 13:41:02 +1200, Thomas Munro wrote:
> One practical problem with this change is that some systems have a
> stub definition of pthread_sigmask() that does nothing, when you don't
> link against the threading library.  Realistically, most *useful*
> builds of PostgreSQL bring it in indirectly (via SSL, LDAP, blah
> blah), but it so happens that a bare bones build and make check on
> this here FreeBSD box hangs in CHECK DATABASE waiting for the
> checkpointer to signal it.  I can fix that by putting -lthr into
> LDFLAGS, so we'd probably have to figure out how to do that on our
> supported systems.

Couldn't this be driven by --disable-thread-safety?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: HyperLogLog.c and pg_leftmost_one_pos32()
Next
From: Andres Freund
Date:
Subject: Re: Threading in BGWorkers (!)