- Notifications
You must be signed in to change notification settings - Fork4.9k
Commite3cc039
committed
Skip second WriteToc() call for custom-format dumps without data.
Presently, "pg_dump --format=custom" calls WriteToc() twice. Thesecond call updates the data offset information, which allegedlymakes parallel pg_restore significantly faster. However, if we'renot dumping any data, there are no data offsets to update, so wecan skip this step.Reviewed-by: Jeff Davis <pgsql@j-davis.com>Discussion:https://postgr.es/m/Z9c1rbzZegYQTOQE%40nathan1 parentd9c7911 commite3cc039
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
755 | 755 |
| |
756 | 756 |
| |
757 | 757 |
| |
758 |
| - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
759 | 761 |
| |
760 |
| - | |
| 762 | + | |
761 | 763 |
| |
762 | 764 |
| |
763 | 765 |
| |
|
0 commit comments
Comments
(0)