Re: pgsql: Reference test binary using TESTDIR in 001_libpq_pipeline.pl.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Reference test binary using TESTDIR in 001_libpq_pipeline.pl.
Date: 2021-10-20 21:48:39
Message-ID: 2276280.1634766519@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Andrew Dunstan <andrew(at)dunslane(dot)net> 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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-10-20 22:44:44 pgsql: Improve pg_regress.c's infrastructure for issuing psql commands.
Previous Message Andrew Dunstan 2021-10-20 21:27:26 Re: pgsql: Reference test binary using TESTDIR in 001_libpq_pipeline.pl.