forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5f53b42
committed
During pg_dump startup, acquire table locks in batches.
Combine multiple LOCK TABLE commands to reduce the number ofround trips to the server. This is particularly helpful whendumping from a remote server, but it seems useful even withoutthat. In particular, shortening the time from seeing a tablein pg_class to acquiring lock on it reduces the window fortrouble from concurrent DDL.Aleksander Alekseev, reviewed by Fabrízio de Royes Mello,Gilles Darold, and Andres FreundDiscussion:https://postgr.es/m/CAJ7c6TO4z1+OBa-R+fC8FnaUgbEWJUf2Kq=nRngTW5EXtKru2g@mail.gmail.com1 parentb23837d commit5f53b42
1 file changed
+31
-5
lines changedLines changed: 31 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6470 | 6470 |
| |
6471 | 6471 |
| |
6472 | 6472 |
| |
| 6473 | + | |
| 6474 | + | |
6473 | 6475 |
| |
6474 | 6476 |
| |
6475 | 6477 |
| |
| |||
6587 | 6589 |
| |
6588 | 6590 |
| |
6589 | 6591 |
| |
6590 |
| - | |
6591 |
| - | |
6592 |
| - | |
6593 |
| - | |
6594 |
| - | |
| 6592 | + | |
| 6593 | + | |
| 6594 | + | |
| 6595 | + | |
| 6596 | + | |
| 6597 | + | |
| 6598 | + | |
| 6599 | + | |
| 6600 | + | |
| 6601 | + | |
| 6602 | + | |
| 6603 | + | |
| 6604 | + | |
| 6605 | + | |
| 6606 | + | |
| 6607 | + | |
| 6608 | + | |
| 6609 | + | |
| 6610 | + | |
| 6611 | + | |
| 6612 | + | |
| 6613 | + | |
6595 | 6614 |
| |
6596 | 6615 |
| |
6597 | 6616 |
| |
| 6617 | + | |
| 6618 | + | |
| 6619 | + | |
| 6620 | + | |
| 6621 | + | |
| 6622 | + | |
| 6623 | + | |
6598 | 6624 |
| |
6599 | 6625 |
| |
6600 | 6626 |
| |
|
0 commit comments
Comments
(0)