Integration of pgbackupapi

This commit is contained in:
Mario Gonzalez
2023-02-03 14:09:44 -03:00
parent c6366db6f9
commit 81c3200ef2
8 changed files with 153 additions and 13 deletions

View File

@@ -3096,9 +3096,14 @@ get_standby_clone_mode(void)
if (*config_file_options.barman_host != '\0' && runtime_options.without_barman == false)
mode = barman;
else
mode = pg_basebackup;
else {
if (*config_file_options.pg_backupapi_host != '\0') {
log_info("Attempting to use `pg_backupapi` new restore mode");
mode = pg_backupapi;
}
else
mode = pg_basebackup;
}
return mode;
}