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

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pgsql: Reference test binary using TESTDIR in 001_libpq_pipeline.pl.
Дата
Msg-id bbf3f575-87ba-2f31-233b-677a84e53f82@dunslane.net
обсуждение исходный текст
Ответ на Re: pgsql: Reference test binary using TESTDIR in 001_libpq_pipeline.pl.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On 10/20/21 5:48 PM, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.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"
>
>             


fair point. See attached. Tested on MSVC and Linux


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com


Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: Fix SSL tests on 32-bit Perl
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: clarify a critical and undocumented aspect of simplehash.h.