Commit d8b23cd
Disable startup progress timeout during standby WAL replay
The server disables periodic recovery progress logging controlled by
log_startup_progress_interval in standby mode, because a standby
remains in recovery until promotion and would otherwise emit recovery
progress messages indefinitely.
However, startup operations executed afterward, such as
ResetUnloggedRelations(), can re-enable the startup progress timeout.
As a result, the timeout could previously remain active during standby
WAL replay.
This caused no user-visible issue because recovery progress messages
are not emitted during standby WAL replay. However, the timeout still
generated unnecessary periodic wakeups.
Fix this by disabling the startup progress timeout again when WAL
replay starts in standby mode. This preserves progress reporting for
earlier startup operations while keeping the timeout disabled during
standby WAL replay as intended.
Also clarify the log_startup_progress_interval documentation to
describe which startup operations emit progress messages, and that WAL
replay progress is not reported on standby servers.1 parent 1f3b9bb commit d8b23cd
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7661 | 7661 | | |
7662 | 7662 | | |
7663 | 7663 | | |
7664 | | - | |
| 7664 | + | |
| 7665 | + | |
| 7666 | + | |
7665 | 7667 | | |
7666 | 7668 | | |
7667 | 7669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1672 | 1684 | | |
1673 | 1685 | | |
1674 | 1686 | | |
| |||
0 commit comments