Skip to content

Commit 0621d34

Browse files
authored
Chore: Fix pg_dump args (#1193)
Add --quote-all-identifiers to improve cross-Postgres-version imports, and improve readability
1 parent 85fc546 commit 0621d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pgdump/pgdump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func RestoreCommand(t Target) string {
4242

4343
// DumpCommand generates a pg_dump command that can be used for on-prem-to-Cloud migrations.
4444
func DumpCommand(t Target) string {
45-
dump := fmt.Sprintf("pg_dump --no-owner --format=p --no-acl --clean --if-exists --username=%s --dbname=%s",
45+
dump := fmt.Sprintf("pg_dump --clean --format=plain --if-exists --no-acl --no-owner --quote-all-identifiers --username=%s --dbname=%s",
4646
t.Username, t.DBName)
4747
if t.Password == "" {
4848
return dump

0 commit comments

Comments
 (0)