Commit 5f53b42
committed
During pg_dump startup, acquire table locks in batches.
Combine multiple LOCK TABLE commands to reduce the number of
round trips to the server. This is particularly helpful when
dumping from a remote server, but it seems useful even without
that. In particular, shortening the time from seeing a table
in pg_class to acquiring lock on it reduces the window for
trouble from concurrent DDL.
Aleksander Alekseev, reviewed by Fabrízio de Royes Mello,
Gilles Darold, and Andres Freund
Discussion: https://postgr.es/m/CAJ7c6TO4z1+OBa-R+fC8FnaUgbEWJUf2Kq=nRngTW5EXtKru2g@mail.gmail.com1 parent b23837d commit 5f53b42
1 file changed
+31
-5
lines changed| 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