- Notifications
You must be signed in to change notification settings - Fork5k
Commit6c320b8
committed
Obtain table locks as soon as practical during pg_dump.
For some reason, when we (I) added table lock acquisition to pg_dump,we didn't think about making it happen as soon as possible after thestart of the transaction. What with subsequent additions, there wasactually quite a lot going on before we got around to that; which sortof defeats the purpose. Rearrange the order of calls in dumpSchema()to close the risk window as much as we easily can. Back-patch to allsupported branches.1 parent199d449 commit6c320b8
1 file changed
+10
-4
lines changedLines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
94 | 104 |
| |
95 | 105 |
| |
96 | 106 |
| |
| |||
121 | 131 |
| |
122 | 132 |
| |
123 | 133 |
| |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 | 134 |
| |
129 | 135 |
| |
130 | 136 |
| |
|
0 commit comments
Comments
(0)