Add --encoding to pg_dump.

Bruce Momjian <bruce@momjian.us>

Commit: d1cffe2f779d95ddb9f0607f284e2c6c3a71d566
Author: Bruce Momjian <bruce@momjian.us>
Date: 2005-07-10T15:08:52Z
Releases: 8.1.0
Add --encoding to pg_dump.

The Problem:  Occassionally a DBA needs to dump a database to a new
encoding.   In instances where the current encoding, (or lack of an
encoding, like SQL_ASCII) is poorly supported on the target  database
server, it can be useful to dump into a particular  encoding.  But,
currently the only way to set the encoding of  a pg_dump file is to
change  client_encoding in postgresql.conf and restart postmaster.
This is more  than a little awkward for production systems.

Magnus Hagander

Files

PathChange+/−
doc/src/sgml/ref/pg_dump.sgml modified +13 −1
src/bin/pg_dump/pg_dump.c modified +18 −2