Re: Remove pthread_is_threaded_np() checks in postmaster - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Remove pthread_is_threaded_np() checks in postmaster
Date
Msg-id 20240123194708.tyuzg4vreuhbdhmc@awork3.anarazel.de
Whole thread Raw
In response to Remove pthread_is_threaded_np() checks in postmaster  ("Tristan Partin" <tristan@neon.tech>)
Responses Re: Remove pthread_is_threaded_np() checks in postmaster
List pgsql-hackers
Hi,
On 2024-01-23 13:20:15 -0600, Tristan Partin wrote:
> These checks are not effective for what they are trying to prevent. A recent
> commit[0] in libcurl when used on macOS has been tripping the
> pthread_is_threaded_np() check in postmaster.c for shared_preload_libraries
> entries which use libcurl (like Neon). Under the hood, libcurl calls
> SCDynamicStoreCopyProxies[1], which apparently causes the check to fail.

Maybe I'm missing something, but isn't that indicating the exact opposite,
namely that the check is precisely doing what it's intended?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Build versionless .so for Android
Next
From: Andres Freund
Date:
Subject: Re: Refactoring backend fork+exec code