1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-07 00:35:37 +02:00

Add archive-mode-check option.

This option disallows the PostgreSQL archive_mode=always setting and disabling it allows the setting.
This commit is contained in:
Stefan Fercot
2021-02-02 19:43:14 +01:00
committed by GitHub
parent 101bf5d114
commit 4b46115345
9 changed files with 142 additions and 3 deletions

View File

@ -465,6 +465,13 @@ testRun(void)
checkDbConfig(PG_VERSION_92, db.primaryIdx, db.primary, false), FeatureNotSupportedError,
"archive_mode=always not supported");
// -------------------------------------------------------------------------------------------------------------------------
TEST_TITLE("disable archive_mode=always check");
strLstAddZ(argList, "--no-archive-mode-check");
harnessCfgLoad(cfgCmdCheck, argList);
TEST_RESULT_VOID(checkDbConfig(PG_VERSION_92, db.primaryIdx, db.primary, false), "check");
TEST_RESULT_VOID(dbFree(db.primary), "free primary");
}