forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit72a914e
committed
Avoid trying to write an empty WAL record in log_newpage_range().
If the last few pages in the specified range are empty (all zero),then log_newpage_range() could try to emit an empty WAL recordcontaining no FPIs. This at least upsets an Assert inReserveXLogInsertLocation, and might perhaps have bad real-worldconsequences in non-assert builds.This has been broken since log_newpage_range() was introduced,but the case was hard if not impossible to hit before commit3d6a984decided it was okay to leave VM and FSM pages intentionally zero.Nonetheless, it seems prudent to back-patch. log_newpage_range()was added in v12 but later back-patched, so this affects allsupported branches.Matthias van de Meent, per report from Justin PryzbyDiscussion:https://postgr.es/m/ZD1daibg4RF50IOj@telsasoft.com1 parent9b104a2 commit72a914e
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1171 | 1171 |
| |
1172 | 1172 |
| |
1173 | 1173 |
| |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1174 | 1178 |
| |
1175 | 1179 |
| |
1176 | 1180 |
| |
|
0 commit comments
Comments
(0)