diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2009-03-11 03:33:29 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2009-03-11 03:33:29 +0000 |
commit | c394bd331a701af06481e6e61a76ea82b18965eb (patch) | |
tree | 826155b0af3525c9fcac1b1724824ee05cf5b706 /src/bin/pg_dump/pg_restore.c | |
parent | b4df57ff9f4136e3e53be629d28187d38e416060 (diff) |
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/pg_restore.c')
-rw-r--r-- | src/bin/pg_dump/pg_restore.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index 02b81b8e8a8..c557f9706fe 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -34,12 +34,13 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.94 2009/02/26 16:02:38 petere Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.95 2009/03/11 03:33:29 adunstan Exp $ * *------------------------------------------------------------------------- */ #include "pg_backup_archiver.h" +#include "dumputils.h" #include <ctype.h> @@ -125,6 +126,8 @@ main(int argc, char **argv) set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_dump")); + init_parallel_dump_utils(); + opts = NewRestoreOptions(); progname = get_progname(argv[0]); |