postgresql/contrib/pg_upgrade
Andrew Dunstan f8c81c5dde 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,
2012-09-05 23:14:49 -04:00
..
.gitignore pg_upgrade: Add new generated file to .gitignore 2012-03-20 20:40:31 +02:00
IMPLEMENTATION Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
Makefile Remove analyze_new_cluster.sh on make clean, too 2012-08-27 14:29:14 -04:00
TESTING Remove whitespace from end of lines 2012-05-15 22:19:41 +03:00
check.c Fix transcription error. 2012-09-04 09:39:49 -04:00
controldata.c pg_upgrade: fix off-by-one mistake in snprintf 2012-06-28 23:37:27 -04:00
dump.c Fix line end mishandling in pg_upgrade on Windows. 2012-09-05 17:41:43 -04:00
exec.c In pg_upgrade, try a few times to open a log file. 2012-09-05 23:14:49 -04:00
file.c Fix thinko in comment 2012-08-27 14:29:14 -04:00
function.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
info.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
option.c In pg_upgrade, pull the port number from postmaster.pid, like we do for 2012-09-03 22:15:09 -04:00
page.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pg_upgrade.c In pg_upgrade, pull the port number from postmaster.pid, like we do for 2012-09-03 22:15:09 -04:00
pg_upgrade.h In pg_upgrade, document why we can't issue \n\n in the command logfile 2012-09-05 00:01:13 -04:00
relfilenode.c In pg_upgrade, use pg_log() instead of prep_status() for 2012-08-03 12:43:37 -04:00
server.c Fix pg_upgrade to cope with non-default unix_socket_directory scenarios. 2012-09-03 13:52:40 -04:00
tablespace.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
test.sh Fix pg_upgrade test script's line end handling on Windows. 2012-09-05 18:00:31 -04:00
util.c Silence -Wunused-result warning in contrib/pg_upgrade. 2012-09-05 14:37:22 -04:00
version.c In pg_upgrade, add various logging improvements: 2012-03-12 19:48:03 -04:00
version_old_8_3.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00