]> granicus.if.org Git - postgresql/commit
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:54 +0000 (08:05 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 14 Sep 2010 08:05:54 +0000 (08:05 +0000)
commit105faeb3569b83a2bb2a6b6e367b77d1c51c1789
treed31dd24fa9fd0c1182a2a15f55f942c87d9d451d
parent3b08e09fe7bc2640930aaa9e6d284700f4920f5f
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