diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-22 01:22:35 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-22 01:22:35 +0000 |
commit | ce68df468a41d8dbb992184aad490c07d02ca721 (patch) | |
tree | 4ec28090880de2036493b915c7fb8c0fdb31ba2a /src/bin/pg_dump/dumputils.h | |
parent | b8c6c71d1c513391975fc107a95f104aeeac3117 (diff) | |
download | postgresql-ce68df468a41d8dbb992184aad490c07d02ca721.tar.gz postgresql-ce68df468a41d8dbb992184aad490c07d02ca721.zip |
Add options to force quoting of all identifiers.
I've added a quote_all_identifiers GUC which affects the behavior
of the backend, and a --quote-all-identifiers argument to pg_dump
and pg_dumpall which sets the GUC and also affects the quoting done
internally by those applications.
Design by Tom Lane; review by Alex Hunsaker; in response to bug #5488
filed by Hartmut Goebel.
Diffstat (limited to 'src/bin/pg_dump/dumputils.h')
-rw-r--r-- | src/bin/pg_dump/dumputils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/pg_dump/dumputils.h b/src/bin/pg_dump/dumputils.h index 298b687cd1d..3d22a46323e 100644 --- a/src/bin/pg_dump/dumputils.h +++ b/src/bin/pg_dump/dumputils.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/pg_dump/dumputils.h,v 1.29 2010/02/26 02:01:16 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/dumputils.h,v 1.30 2010/07/22 01:22:34 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -46,4 +46,6 @@ extern bool processSQLNamePattern(PGconn *conn, PQExpBuffer buf, const char *schemavar, const char *namevar, const char *altnamevar, const char *visibilityrule); +extern int quote_all_identifiers; + #endif /* DUMPUTILS_H */ |