On Fri, Jul 14, 2017 at 12:39 PM, Michael Paquier <[email protected]> wrote: > While looking at a user problem, I got surprised that pg_dumpall does > not have a -E switch. This has been discussed a bit in the past like > here: > https://www.postgresql.org/message-id/[email protected] > > Now it is possible to enforce the encoding used by using > PGCLIENTENCODING but I think that a switch would be useful as well, > particularly for Windows where "set" needs to be used. Are there any > objections to a patch adding support for that? Such a patch should do: > - Call PQsetClientEncoding if an encoding is defined after getting a > connection. > - Pass down -E to pg_dump calls if something is set. > > Thoughts?
Attached is a patch to add support for this switch. I am parking that in the next CF. -- Michael
pgdumpall-encoding-v1.patch
Description: Binary data
-- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
