Re: Regression tests fail with musl libc because libpq.so can't be loaded - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: Regression tests fail with musl libc because libpq.so can't be loaded
Date
Msg-id ac80cff7-cc8f-4eee-ba4f-12d0fc902e0c@eisentraut.org
Whole thread Raw
In response to Re: Regression tests fail with musl libc because libpq.so can't be loaded  (Christophe Pettus <xof@thebuild.com>)
Responses Re: Regression tests fail with musl libc because libpq.so can't be loaded  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-bugs
On 17.03.24 11:33, Christophe Pettus wrote:
>> On Mar 17, 2024, at 02:44, Wolfgang Walther <walther@technowledgy.de> wrote:
>>
>> Nailed it. PS_USE_NONE fixes it.
> 
> Given the musl (still?) does not define a preprocessor macro specific to it, is there a way of improving the test in
pg_status.cto catch this case?  It seems wrong that the current test passes a case that doesn't actually work.
 
> 

We could turn it around and do

#if defined(__linux__)
#if defined(__GLIBC__) || defined(__UCLIBC__ )
#define PS_USE_CLOBBER_ARGV
#else
#define PS_USE_NONE
#endif
#endif




pgsql-bugs by date:

Previous
From: Alexander Lakhin
Date:
Subject: Re: BUG #18396: Assert in gistFindCorrectParent() fails on inserting large tuples into gist index
Next
From: Tender Wang
Date:
Subject: Re: BUG #18396: Assert in gistFindCorrectParent() fails on inserting large tuples into gist index