postgresql/src/bin/pg_dump
Kevin Grittner cc609c46fb Allow pg_dump to use jobs and serializable transactions together.
Since 9.3, when the --jobs option was introduced, using it together
with the --serializable-deferrable option generated multiple
errors.  We can get correct behavior by allowing the connection
which acquires the snapshot to use SERIALIZABLE, READ ONLY,
DEFERRABLE and pass that to the workers running the other
connections using REPEATABLE READ, READ ONLY.  This is a bit of a
kluge since the SERIALIZABLE behavior is achieved by running some
of the participating connections at a different isolation level,
but it is a simple and safe change, suitable for back-patching.

This will be followed by a proposal for a more invasive fix with
some slight behavioral changes on just the master branch, based on
suggestions from Andres Freund, but the kluge will be applied to
master until something is agreed along those lines.

Back-patched to 9.3, where the --jobs option was added.

Based on report from Alexander Korotkov
2015-01-30 09:01:36 -06:00
..
po Translation updates 2014-07-21 01:04:46 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.c Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
compress_io.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
compress_io.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
dumputils.c Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
dumputils.h Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
keywords.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
nls.mk Translation updates 2013-09-02 02:28:21 -04:00
parallel.c Fix assorted confusion between Oid and int32. 2014-12-11 15:41:23 -05:00
parallel.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pg_backup.h Add parallel pg_dump option. 2013-03-24 11:27:20 -04:00
pg_backup_archiver.c Fix identify_locking_dependencies for schema-only dumps. 2014-09-26 11:23:43 -04:00
pg_backup_archiver.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pg_backup_custom.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_db.c Fix pg_restore's processing of old-style BLOB COMMENTS data. 2014-06-12 20:14:39 -04:00
pg_backup_db.h pg_dump: Further reduce reliance on global variables. 2012-02-07 10:07:02 -05:00
pg_backup_directory.c Properly check for readdir/closedir() failures 2014-03-21 13:45:11 -04:00
pg_backup_null.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_tar.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_utils.h Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_dump.c Allow pg_dump to use jobs and serializable transactions together. 2015-01-30 09:01:36 -06:00
pg_dump.h pg_upgrade: preserve database and relation minmxid values 2014-07-02 15:29:38 -04:00
pg_dump_sort.c Fix a performance problem in pg_dump's dump order selection logic. 2014-07-25 19:48:48 -04:00
pg_dumpall.c Fix pg_dumpall to restore its ability to dump from ancient servers. 2014-11-13 18:19:32 -05:00
pg_restore.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00