]> granicus.if.org Git - postgresql/commit
Fix heap_page_prune's problem with failing to send cache invalidation
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Mar 2008 18:00:39 +0000 (18:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Mar 2008 18:00:39 +0000 (18:00 +0000)
commit8efc13140e80f51f1033d9fa22b302409edad06c
tree255aba49484e7aa56de1356a123488e402fd7597
parent1dd56fdae41367ca0fdef5c14849a7e755a8ed32
Fix heap_page_prune's problem with failing to send cache invalidation
messages if the calling transaction aborts later on.  Collapsing out line
pointer redirects is a done deal as soon as we complete the page update,
so syscache *must* be notified even if the VACUUM FULL as a whole doesn't
complete.  To fix, add some functionality to inval.c to allow the pending
inval messages to be sent immediately while heap_page_prune is still
running.  The implementation is a bit chintzy: it will only work in the
context of VACUUM FULL.  But that's all we need now, and it can always be
extended later if needed.  Per my trouble report of a week ago.
src/backend/access/heap/pruneheap.c
src/backend/utils/cache/inval.c
src/include/utils/inval.h