]> granicus.if.org Git - postgresql/commit
Respect Hot Standby controls while recycling btree index pages.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 16 Jun 2011 09:17:59 +0000 (10:17 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 16 Jun 2011 09:17:59 +0000 (10:17 +0100)
commit9340e643e4cbc11a7a5aaea0297236e9a8c07600
treea074610a26b840475502603a62b0c5e49eb5d12c
parenta969a2f03041cd33bc9f9f75f0b6a1c0f5b921e2
Respect Hot Standby controls while recycling btree index pages.
Btree pages were recycled after VACUUM deletes all records on a
page and then a subsequent VACUUM occurs after the RecentXmin
horizon is reached. Using RecentXmin meant that we did not respond
correctly to the user controls provide to avoid Hot Standby
conflicts and so spurious conflicts could be generated in some
workload combinations. We now reuse pages only when we reach
RecentGlobalXmin, which can be much later in the presence of long
running queries and is also controlled by vacuum_defer_cleanup_age
and hot_standby_feedback.

Noah Misch and Simon Riggs
src/backend/access/nbtree/nbtpage.c