forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf83d709
committed
Merge prune, freeze and vacuum WAL record formats
The new combined WAL record is now used for pruning, freezing and 2ndpass of vacuum. This is in preparation for changing VACUUM to write acombined prune+freeze record per page, instead of separate tworecords. The new WAL record format now supports that, but the codestill always writes separate records for pruning and freezing.This reserves separate XLOG_HEAP2_* info codes for when the pruningrecord is emitted for on-access pruning or VACUUM, per PeterGeoghegan's suggestion. The record format is identical, but havingseparate info codes makes it easier analyze pruning and vacuuming withpg_waldump.The function to emit the new WAL record, log_heap_prune_and_freeze(),is in pruneheap.c. The existing heap_log_freeze_plan() and itssubroutines are moved to pruneheap.c without changes, to keep themtogether with log_heap_prune_and_freeze().Author: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://www.postgresql.org/message-id/CAAKRu_azf-zH%3DDgVbquZ3tFWjMY1w5pO8m-TXJaMdri8z3933g@mail.gmail.comDiscussion:https://www.postgresql.org/message-id/CAAKRu_b2oE4GL%3Dq4g9mcByS9yT7wTQvEH9OLpabj28e%2BWKFi2A@mail.gmail.com1 parentd44032d commitf83d709
File tree
11 files changed
+805
-600
lines changed- src
- backend
- access
- gist
- hash
- heap
- rmgrdesc
- replication/logical
- include/access
- tools/pgindent
11 files changed
+805
-600
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
992 | 992 |
| |
993 | 993 |
| |
994 | 994 |
| |
995 |
| - | |
996 |
| - | |
997 |
| - | |
998 |
| - | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
999 | 1000 |
| |
1000 | 1001 |
| |
1001 | 1002 |
| |
|
0 commit comments
Comments
(0)