pgsql: In pg_upgrade, try a few times to open a log file.

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: In pg_upgrade, try a few times to open a log file.
Дата
Msg-id E1T9SYr-0005RI-V3@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
In pg_upgrade, try a few times to open a log file.

If we call pg_ctl stop, the server might continue and thus
hold a log file for a short time after it has deleted its pid file,
(which is when pg_ctl will exit), and so a subsequent attempt to
open the log file might fail.

We therefore try to open it a few times, sleeping one second between
tries, to give the server time to exit.

This corrects an error that was observed on the buildfarm.

Backpatched to 9.2,

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f8c81c5dde23a0be553e95728ffc11e76602fd24

Modified Files
--------------
contrib/pg_upgrade/exec.c |   23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: pgbench: Show better progress when loading tuples
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: In pg_upgrade, try a few times to open a log file.