Skip site navigation (1) Skip section navigation (2)

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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In pg_upgrade, try a few times to open a log file.
Date: 2012-09-06 03:15:31
Message-ID: E1T9SZ1-0005V5-OT@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: 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
------
REL9_2_STABLE

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

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

pgsql-committers by date

Next:From: Tom LaneDate: 2012-09-06 03:37:53
Subject: pgsql: Fix typo in information_schema documentation.
Previous:From: Andrew DunstanDate: 2012-09-06 03:15:21
Subject: pgsql: In pg_upgrade, try a few times to open a log file.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group