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.

This fixes the PostgreSQL side of #9929.
Emit nbtree vacuum cycle id in nbtree xlog through FPIs

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.

This fixes #9929.
  • Loading branch information
MMeent committed Nov 29, 2024
1 parent eb5d832 commit b6f863d
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
2 changes: 1 addition & 1 deletion vendor/postgres-v15
2 changes: 1 addition & 1 deletion vendor/postgres-v16
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",
"3c15b6565f6c8d36d169ed9ea7412cf90cfb2a8f"
"88ba830f71fbde1c046d2ff4ee9235414f5ca35a"
],
"v16": [
"16.6",
"f5cfc6fa898544050e821ac688adafece1ac3cff"
"254f671ad8b8909477f9ce369ad7285bcb8bea91"
],
"v15": [
"15.10",
"aed79ee87b94779cc52ec13e3b74eba6ada93f05"
"aeac6c4c4dc77a73533c46f09baf70b04e3a7b3d"
],
"v14": [
"14.15",
"284ae56be2397fd3eaf20777fa220b2d0ad968f5"
"e4ab555512285de7c646dd00dfd10a4e895839ee"
]
}

0 comments on commit b6f863d

Please sign in to comment.