Skip to content

Commit

Permalink
Remove binary_parameters from pg_dump database url (#614)
Browse files Browse the repository at this point in the history
These are sometimes needed in the pq library, but are not supported when
calling pg_dump.

Signed-off-by: Guido Trotter <[email protected]>
Co-authored-by: Guido Trotter <[email protected]>
  • Loading branch information
ultrotter and Guido Trotter authored Jan 22, 2025
1 parent a5dd64b commit 48032cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/driver/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func connectionArgsForDump(conn *url.URL) []string {
query := u.Query()
schemas := strings.Split(query.Get("search_path"), ",")
query.Del("search_path")
query.Del("binary_parameters")
u.RawQuery = query.Encode()

out := []string{}
Expand Down

0 comments on commit 48032cb

Please sign in to comment.