Don't warn about an in-progress online backup, when we're recovering from
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 14 Sep 2010 08:05:33 +0000 (08:05 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 14 Sep 2010 08:05:33 +0000 (08:05 +0000)
commit06e8c8e3ec14e597e5f47c7b5b6b0c0b17bedcf0
treee94f471e4d8339b7956f2888a173f31d4018c75c
parentc1ba7db6c1cc6f1e41b58c5b89f5f838653f4bf0
Don't warn about an in-progress online backup, when we're recovering from
an online backup instead of performing one. pg_ctl can detect that by
checking if recovery.conf exists.

Backup label file is renamed away early in recovery, so the window where
backup label exists during recovery is normally very small, but you can run
into it e.g if restore_command is set incorrectly and the startup process
never finds even the first WAL segment containing the checkpoint record to
start recovery from.

Fujii Masao with comments by me.
src/bin/pg_ctl/pg_ctl.c