]> granicus.if.org Git - postgresql/commit
Use E'' strings internally only when standard_conforming_strings =
authorBruce Momjian <bruce@momjian.us>
Fri, 26 May 2006 23:48:54 +0000 (23:48 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 26 May 2006 23:48:54 +0000 (23:48 +0000)
commit7a846ecc00b13a81adbf78b66dcf927077a802f8
tree78124ecf7f8ca7922f1412ad8638eac46396f136
parent4d63e267742a2afe481a34f4742c0551c6b0a112
Use E'' strings internally only when standard_conforming_strings =
'off'. This allows pg_dump output with standard_conforming_strings =
'on' to generate proper strings that can be loaded into other databases
without the backslash doubling we typically do.  I have added the
dumping of the standard_conforming_strings value to pg_dump.

I also added standard backslash handling for plpgsql.
15 files changed:
src/backend/utils/adt/quote.c
src/backend/utils/adt/ruleutils.c
src/bin/initdb/initdb.c
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/pg_backup_archiver.c
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/ecpg/ecpglib/execute.c
src/pl/plpgsql/src/gram.y