diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2012-09-05 23:14:49 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2012-09-05 23:14:49 -0400 |
commit | f8c81c5dde23a0be553e95728ffc11e76602fd24 (patch) | |
tree | 1e8f54bb8e37698cbd0859458235f8352a1e09ce /src/backend/utils/adt/numeric.c | |
parent | 4c60b80094009c6f8ed9ccee365e445f07e609ab (diff) | |
download | postgresql-f8c81c5dde23a0be553e95728ffc11e76602fd24.tar.gz postgresql-f8c81c5dde23a0be553e95728ffc11e76602fd24.zip |
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,
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions