diff --git a/docker/backup.postgres.plugin b/docker/backup.postgres.plugin index 52014fc..d4710f6 100644 --- a/docker/backup.postgres.plugin +++ b/docker/backup.postgres.plugin @@ -85,6 +85,17 @@ function onRestoreDatabase(){ echo fi + # Drop Patroni-specific schemas + if (( ${_rtnCd} == 0 )); then + psql -h "${_hostname}" ${_portArg} -a -d ${_database} <