From 5b982320e0fc009fd1ba70cc6f5a57becf64fa2c Mon Sep 17 00:00:00 2001 From: Marc <7050295+marcleblanc2@users.noreply.github.com> Date: Mon, 10 Nov 2025 23:51:49 -0700 Subject: [PATCH] Chore: Fix pg_dump args Add --quote-all-identifiers to improve cross-Postgres-version imports, and improve readability --- internal/pgdump/pgdump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pgdump/pgdump.go b/internal/pgdump/pgdump.go index 1a3530a065..05d916b16b 100644 --- a/internal/pgdump/pgdump.go +++ b/internal/pgdump/pgdump.go @@ -42,7 +42,7 @@ func RestoreCommand(t Target) string { // DumpCommand generates a pg_dump command that can be used for on-prem-to-Cloud migrations. func DumpCommand(t Target) string { - dump := fmt.Sprintf("pg_dump --no-owner --format=p --no-acl --clean --if-exists --username=%s --dbname=%s", + dump := fmt.Sprintf("pg_dump --clean --format=plain --if-exists --no-acl --no-owner --quote-all-identifiers --username=%s --dbname=%s", t.Username, t.DBName) if t.Password == "" { return dump