From ad059192321cc4db6b073a334b27d8ddbc6b86b1 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Sun, 20 Aug 2023 14:20:13 +0200 Subject: [PATCH] fix --- cmd/internal/database/postgres/postgres.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/internal/database/postgres/postgres.go b/cmd/internal/database/postgres/postgres.go index 278422b..f7bc5a3 100644 --- a/cmd/internal/database/postgres/postgres.go +++ b/cmd/internal/database/postgres/postgres.go @@ -235,11 +235,13 @@ func (db *Postgres) Upgrade() error { db.log.Infow("start upgrading from", "old database", pgVersion, "old binary", oldBinaryVersionMajor, "new binary", binaryVersionMajor) // Take a backup - err = db.Backup() - if err != nil { - db.log.Infow("creating a backup before upgrading failed, skipping upgrade", "error", err) - return nil - } + // masterdata-db-0 backup-restore-sidecar {"level":"info","timestamp":"2023-08-20T12:10:44Z","logger":"postgres","caller":"postgres/postgres.go:240","msg":"creating a backup before upgrading failed, skipping upgrade","error":"error running backup command: pg_basebackup: error: connection to server at \"127.0.0.1\", port + // 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections? exit status 1"} + // err = db.Backup() + // if err != nil { + // db.log.Infow("creating a backup before upgrading failed, skipping upgrade", "error", err) + // return nil + // } // run the pg_upgrade command