We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85fc546 commit 0621d34Copy full SHA for 0621d34
internal/pgdump/pgdump.go
@@ -42,7 +42,7 @@ func RestoreCommand(t Target) string {
42
43
// DumpCommand generates a pg_dump command that can be used for on-prem-to-Cloud migrations.
44
func DumpCommand(t Target) string {
45
- 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",
46
t.Username, t.DBName)
47
if t.Password == "" {
48
return dump
0 commit comments