From 0db3b469088286e74962a33b0b7adf8ea06215b9 Mon Sep 17 00:00:00 2001 From: Jonathan Sharman Date: Fri, 5 Apr 2024 09:56:14 -0700 Subject: [PATCH] fix: allow backup verification and restore to work with patroni --- docker/backup.postgres.plugin | 11 +++++++++++ 1 file changed, 11 insertions(+) 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} <