Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (connection): Avoid usage of prepare statements to get rid of problem with PgBounder

Rostislav Dugin06282bb43533
diff --git a/backend/internal/features/databases/databases/postgresql/model.go b/backend/internal/features/databases/databases/postgresql/model.go
index 30682b4a..da701b4c 100644
--- a/backend/internal/features/databases/databases/postgresql/model.go
+++ b/backend/internal/features/databases/databases/postgresql/model.go
@@ -593,7 +593,8 @@ func buildConnectionStringForDB(p *PostgresqlDatabase, dbName string, password s
sslMode = "require"
}
- return fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=%s",
+ return fmt.Sprintf(
+ "host=%s port=%d user=%s password=%s dbname=%s sslmode=%s default_query_exec_mode=simple_protocol",
p.Host,
p.Port,
p.Username,