Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rotXt-003xO5-WC for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 23:16:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rotXq-008yCi-U6 for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 23:15:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rotXq-008yCa-M7 for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 23:15:59 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rotXo-006U4E-Nl for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 23:15:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 42PNFqXd2712382; Mon, 25 Mar 2024 19:15:52 -0400 From: Tom Lane To: Thomas Munro cc: Peter Eisentraut , Bruce Momjian , walther@technowledgy.de, Christophe Pettus , Andrew Dunstan , PostgreSQL Bugs , Robert Haas Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded In-reply-to: References: <477fa513-6bf0-456d-8d24-1e22a19df671@technowledgy.de> <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de> <443430b4-0c10-49f3-8c8a-e5e76602f309@eisentraut.org> Comments: In-reply-to Thomas Munro message dated "Tue, 26 Mar 2024 11:54:59 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2712380.1711408552.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 25 Mar 2024 19:15:52 -0400 Message-ID: <2712381.1711408552@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Tue, Mar 26, 2024 at 11:46=E2=80=AFAM Peter Eisentraut wrote: >> What determines which variables require this treatment? > I had originally proposed to avoid anything beginning "LD_" but Tom > suggested being more specific. I doubt LD_PRELOAD can really hurt you > though (the linker probably only needs the value at the start by > definition, not at later dlopen() time (?)). Oh, good point. So we could simplify the patch by only looking for LD_LIBRARY_PATH. regards, tom lane