Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdJS2-00018o-2A for pgsql-committers@arkaria.postgresql.org; Wed, 20 Oct 2021 21:48:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mdJS1-00015a-0X for pgsql-committers@arkaria.postgresql.org; Wed, 20 Oct 2021 21:48:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdJS0-00015R-QE for pgsql-committers@lists.postgresql.org; Wed, 20 Oct 2021 21:48:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdJRy-0007ie-LP for pgsql-committers@lists.postgresql.org; Wed, 20 Oct 2021 21:48:43 +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 19KLmd8C2276281; Wed, 20 Oct 2021 17:48:39 -0400 From: Tom Lane To: Andrew Dunstan cc: Andres Freund , Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Reference test binary using TESTDIR in 001_libpq_pipeline.pl. In-reply-to: References: <202110181423.cmd34pruwlry@alvherre.pgsql> <20211020163123.adogznqee7oosvj5@alap3.anarazel.de> <1ccbc9a2-1e0f-93bf-745d-99b3409e10ae@dunslane.net> <20211020190916.bzvnmo6kxeqehczv@alap3.anarazel.de> Comments: In-reply-to Andrew Dunstan message dated "Wed, 20 Oct 2021 17:27:26 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2276279.1634766519.1@sss.pgh.pa.us> Date: Wed, 20 Oct 2021 17:48:39 -0400 Message-ID: <2276280.1634766519@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > OK, it turns out that it's better to put the addition at the end of the > PATH, otherise initdb complains that it can't find postgres in the same > directory. That seems horribly unsafe, or at least prone to pulling in the program from some other versuion of Postgres. How about ordering the path like PATH="$(abs_top_builddir)/tmp_install$(bindir):$(CURDIR):$$PATH" regards, tom lane