]> granicus.if.org Git - postgresql/commit
Fix up pg_dump to do string escaping fully correctly for client encoding
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 May 2006 21:13:54 +0000 (21:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 May 2006 21:13:54 +0000 (21:13 +0000)
commit134b463f027d1113df6f983c3348f165b1ac1ffa
tree7e247256f1fcb5e0e1a4759b854f673366c4478d
parent117d73a9e7af61f6742e3d2b46f1dfbe3e02b9ca
Fix up pg_dump to do string escaping fully correctly for client encoding
and standard_conforming_strings; likewise for the other client programs
that need it.  As per previous discussion, a pg_dump dump now conforms
to the standard_conforming_strings setting of the source database.
We don't use E'' syntax in the dump, thereby improving portability of
the SQL.  I added a SET escape_strings_warning = off command to keep
the dumps from getting a lot of back-chatter from that.
15 files changed:
src/backend/utils/adt/quote.c
src/backend/utils/adt/ruleutils.c
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/bin/psql/describe.c
src/bin/psql/large_obj.c
src/bin/scripts/createdb.c
src/bin/scripts/createuser.c
src/include/c.h
src/interfaces/libpq/fe-exec.c