pgsql: Make pg_upgrade's test script attempt to select a non-conflictin

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Make pg_upgrade's test script attempt to select a non-conflictin
Дата
Msg-id E1UbERC-0000wr-AM@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Make pg_upgrade's test script attempt to select a non-conflicting port.

Previously, the port number used in this test script was hard-wired at
pg_upgrade's default of 50432; which is not so great because parallel build
runs might conflict.  Commit 3d53173e20d151341f894f79d556768c845ba3e4
removed this setting for the postmasters started by the script proper
(not by pg_upgrade), which didn't do anything to fix that problem and also
guaranteed a failure if there was a live postmaster at the build's default
port number.  Instead, select a non-conflicting temporary port number in
the same way that pg_regress.c does.  (Its method isn't entirely
bulletproof, but given the lack of complaints I'm not going to worry
about that today.)

In passing, unset MAKEFLAGS and MAKELEVEL to avoid problems with the
script's internal invocations of make, for the same reason pg_regress.c
does: it could cause problems in a parallel make.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7e2b1c03ce24e8fefa2080c0f1f8cfbb86ce664e

Modified Files
--------------
contrib/pg_upgrade/test.sh |   33 +++++++++++++++++++++++++++++----
1 files changed, 29 insertions(+), 4 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Update CREATE FUNCTION documentation about argument names.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix buildfarm incompatibility in updated pg_upgrade test script.