- Notifications
You must be signed in to change notification settings - Fork5
Commit18fb9d8
committed
Reduce checkpoints and WAL traffic on low activity database server
Previously, we skipped a checkpoint if no WAL had been written sincelast checkpoint, though this does not appear in user documentation.As of now, we skip a checkpoint until we have written at least oneenough WAL to switch the next WAL file. This greatly reduces thelevel of activity and number of WAL messages generated by a verylow activity server. This is safe because the purpose of a checkpointis to act as a starting place for a recovery, in case of crash.This patch maintains minimal WAL volume for replay in case of crash,thus maintaining very low crash recovery time.1 parent9aceb6a commit18fb9d8
1 file changed
+15
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7560 | 7560 | | |
7561 | 7561 | | |
7562 | 7562 | | |
| 7563 | + | |
| 7564 | + | |
| 7565 | + | |
| 7566 | + | |
7563 | 7567 | | |
7564 | 7568 | | |
7565 | 7569 | | |
| |||
7636 | 7640 | | |
7637 | 7641 | | |
7638 | 7642 | | |
7639 | | - | |
7640 | | - | |
| 7643 | + | |
| 7644 | + | |
7641 | 7645 | | |
7642 | 7646 | | |
7643 | 7647 | | |
7644 | 7648 | | |
7645 | 7649 | | |
7646 | 7650 | | |
7647 | 7651 | | |
7648 | | - | |
7649 | | - | |
7650 | | - | |
7651 | | - | |
| 7652 | + | |
| 7653 | + | |
| 7654 | + | |
| 7655 | + | |
| 7656 | + | |
7652 | 7657 | | |
7653 | 7658 | | |
7654 | 7659 | | |
7655 | 7660 | | |
7656 | 7661 | | |
7657 | 7662 | | |
7658 | 7663 | | |
7659 | | - | |
7660 | | - | |
7661 | | - | |
7662 | | - | |
7663 | | - | |
7664 | | - | |
7665 | | - | |
| 7664 | + | |
| 7665 | + | |
| 7666 | + | |
| 7667 | + | |
7666 | 7668 | | |
7667 | 7669 | | |
7668 | 7670 | | |
| |||
0 commit comments
Comments
(0)