aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/dumputils.h
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2009-03-11 03:33:29 +0000
committerAndrew Dunstan <andrew@dunslane.net>2009-03-11 03:33:29 +0000
commitc394bd331a701af06481e6e61a76ea82b18965eb (patch)
tree826155b0af3525c9fcac1b1724824ee05cf5b706 /src/bin/pg_dump/dumputils.h
parentb4df57ff9f4136e3e53be629d28187d38e416060 (diff)
downloadpostgresql-c394bd331a701af06481e6e61a76ea82b18965eb.tar.gz
postgresql-c394bd331a701af06481e6e61a76ea82b18965eb.zip
Use thread-local storage for querybuffer in fmtId() on Windows, when needed (i.e. when
running pg_restore, which might run in parallel). Only reopen archive file when we really need to read from it, in parallel code. Otherwise, close it immediately in a worker, if possible.
Diffstat (limited to 'src/bin/pg_dump/dumputils.h')
-rw-r--r--src/bin/pg_dump/dumputils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_dump/dumputils.h b/src/bin/pg_dump/dumputils.h
index b8a3532fa88..952c8b3653e 100644
--- a/src/bin/pg_dump/dumputils.h
+++ b/src/bin/pg_dump/dumputils.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/pg_dump/dumputils.h,v 1.23 2009/01/22 20:16:07 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/dumputils.h,v 1.24 2009/03/11 03:33:29 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,6 +19,7 @@
#include "libpq-fe.h"
#include "pqexpbuffer.h"
+extern void init_parallel_dump_utils(void);
extern const char *fmtId(const char *identifier);
extern void appendStringLiteral(PQExpBuffer buf, const char *str,
int encoding, bool std_strings);