diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-05-26 23:48:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-05-26 23:48:54 +0000 |
commit | 7a846ecc00b13a81adbf78b66dcf927077a802f8 (patch) | |
tree | 78124ecf7f8ca7922f1412ad8638eac46396f136 /src/bin/pg_dump/dumputils.h | |
parent | 4d63e267742a2afe481a34f4742c0551c6b0a112 (diff) |
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.
Diffstat (limited to 'src/bin/pg_dump/dumputils.h')
-rw-r--r-- | src/bin/pg_dump/dumputils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/pg_dump/dumputils.h b/src/bin/pg_dump/dumputils.h index ecf1ea92520..73bc91d6a66 100644 --- a/src/bin/pg_dump/dumputils.h +++ b/src/bin/pg_dump/dumputils.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/pg_dump/dumputils.h,v 1.15 2006/03/05 15:58:50 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/dumputils.h,v 1.16 2006/05/26 23:48:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -17,10 +17,9 @@ #include "pqexpbuffer.h" - extern const char *fmtId(const char *identifier); extern void appendStringLiteral(PQExpBuffer buf, const char *str, - bool escapeAll); + bool escapeAll, bool e_string_for_backslash); extern void appendStringLiteralDQ(PQExpBuffer buf, const char *str, const char *dqprefix); extern void appendStringLiteralDQOpt(PQExpBuffer buf, const char *str, |