1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-09-16 09:06:18 +02:00

Include archive_status directory in online backups.

The archive_status directory is now recreated on restore to support PostgreSQL 8.3 which does not recreate it automatically like more recent versions do.

Also fixed log checking after PostgreSQL shuts down to include FATAL messages and disallow immediate shutdowns which can throw FATAL errors in the log.

Reported by Stephen Frost.
This commit is contained in:
David Steele
2017-07-24 07:57:47 -04:00
parent cda3b9821b
commit d5c1f02c72
5 changed files with 36 additions and 16 deletions

View File

@@ -473,6 +473,9 @@ sub run
# Confirm the check command runs without error on a standby
$oHostDbStandby->check('verify check command on standby');
# Shutdown the stanby before creating tablespaces (this will error since paths are different)
$oHostDbStandby->clusterStop({bIgnoreLogError => true});
}
# Execute stop and make sure the backup fails
@@ -954,12 +957,7 @@ sub run
# Stop clusters to catch any errors in the postgres log
#---------------------------------------------------------------------------------------------------------------------------
$oHostDbMaster->clusterStop({bImmediate => true});
if (defined($oHostDbStandby))
{
$oHostDbStandby->clusterStop({bImmediate => true});
}
$oHostDbMaster->clusterStop();
# Test no-online backups
#---------------------------------------------------------------------------------------------------------------------------