Cause pg_dump to emit a 'SET client_encoding' command at the start of
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Feb 2004 03:35:45 +0000 (03:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Feb 2004 03:35:45 +0000 (03:35 +0000)
commitd3eb15aad9643a1ee6276cebe18fee7140c79b11
tree8d0bc8766f9ef9129c5c110bc67cd99ec1866e5f
parent47282a3830e7785a7b5ad0dc851345c82bd39f92
Cause pg_dump to emit a 'SET client_encoding' command at the start of
any restore operation, thereby ensuring that dumped data is interpreted
the same way it was dumped even if the target database has a different
encoding.  Per suggestions from Pavel Stehule and others.  Also,
simplify scheme for handling check_function_bodies ... we may as well
just set that at the head of the script.
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_dump.c