You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maintain last written LSN for each page to enable prefetch on vacuum,… (#245)
* Maintain last written LSN for each page to enable prefetch on vacuum, delete and other massive update operations
* Move PageSetLSN in heap_xlog_visible before MarkBufferDirty
* NEON: despite to the comment above we need to update page LSN here.
8991
+
* See discussion at hackers: https://www.postgresql.org/message-id/flat/039076d4f6cdd871691686361f83cb8a6913a86a.camel%40j-davis.com#101ba42b004f9988e3d54fce26fb3462
8992
+
* For Neon this assignment is critical because otherwise last written LSN tracked at compute doesn't
8993
+
* match with page LSN assignee by WAL-redo and as a result, prefetched page is rejected.
8994
+
*
8995
+
* It is fixed in upstream in https://github.com/neondatabase/postgres/commit/7bf713dd2d0739fbcd4103971ed69c17ebe677ea
8996
+
* but until it is merged we still need to carry a patch here.
0 commit comments