Skip to content

Commit

Permalink
Emit nbtree vacuum cycle id in nbtree xlog through FPIs
Browse files Browse the repository at this point in the history
NBTree needs a vacuum cycle ID on pages of whom the split resulted in a new
right page that is located before the original page, or who were split from
such split pages in the current vacuum cycle. By WAL-logging the cycle_id
and restoring it in recovery, we assure vacuum doesn't fail to clean up the
earlier pages.

During recovery, we extract the cycle ID from the original page if this page
had an FPI, either directly (when the page was restored) or indirectly (from
the record data).

This fixes #9929
  • Loading branch information
MMeent committed Dec 10, 2024
1 parent c8ab1d1 commit 6fc0edc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion vendor/postgres-v14
Submodule postgres-v14 updated 0 files
2 changes: 1 addition & 1 deletion vendor/postgres-v15
Submodule postgres-v15 updated 0 files
2 changes: 1 addition & 1 deletion vendor/postgres-v16
Submodule postgres-v16 updated 0 files
2 changes: 1 addition & 1 deletion vendor/postgres-v17
8 changes: 4 additions & 4 deletions vendor/revisions.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"v17": [
"17.2",
"ed38f0baf72ebb1d7a7ac080575aad5296e824d9"
"471c449ab8f8ff5988b6bfb9eafa0a79772ad562"
],
"v16": [
"16.6",
"6dfba662ba09fc730cdf30a68337f6a04285139d"
"81428621f7c04aed03671cf80a928e0a36d92505"
],
"v15": [
"15.10",
"28e95671d7fd97e9deed1cafdca5161f90360ded"
"8736b10c1d93d11b9c0489872dd529c4c0f5338f"
],
"v14": [
"14.15",
"d3a2380075daad0bd13a9094f57d20eea0601ecc"
"13ff324150fceaac72920e01742addc053db9462"
]
}

0 comments on commit 6fc0edc

Please sign in to comment.