forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcc609c4
committed
Allow pg_dump to use jobs and serializable transactions together.
Since 9.3, when the --jobs option was introduced, using it togetherwith the --serializable-deferrable option generated multipleerrors. We can get correct behavior by allowing the connectionwhich acquires the snapshot to use SERIALIZABLE, READ ONLY,DEFERRABLE and pass that to the workers running the otherconnections using REPEATABLE READ, READ ONLY. This is a bit of akluge since the SERIALIZABLE behavior is achieved by running someof 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 withsome slight behavioral changes on just the master branch, based onsuggestions from Andres Freund, but the kluge will be applied tomaster until something is agreed along those lines.Back-patched to 9.3, where the --jobs option was added.Based on report from Alexander Korotkov1 parent39c46c5 commitcc609c4
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1004 | 1004 |
| |
1005 | 1005 |
| |
1006 | 1006 |
| |
1007 |
| - | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1008 | 1016 |
| |
1009 | 1017 |
| |
1010 | 1018 |
| |
|
0 commit comments
Comments
(0)