summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2008-03-13 18:00:39 +0000
committerTom Lane2008-03-13 18:00:39 +0000
commit8efc13140e80f51f1033d9fa22b302409edad06c (patch)
tree255aba49484e7aa56de1356a123488e402fd7597 /src/include
parent1dd56fdae41367ca0fdef5c14849a7e755a8ed32 (diff)
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.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/utils/inval.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/utils/inval.h b/src/include/utils/inval.h
index df0e5f397b3..a8a5ff0b410 100644
--- a/src/include/utils/inval.h
+++ b/src/include/utils/inval.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/inval.h,v 1.41 2008/01/01 19:45:59 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/inval.h,v 1.41.2.1 2008/03/13 18:00:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -37,6 +37,10 @@ extern void PostPrepare_Inval(void);
extern void CommandEndInvalidationMessages(void);
+extern void BeginNonTransactionalInvalidation(void);
+
+extern void EndNonTransactionalInvalidation(void);
+
extern void CacheInvalidateHeapTuple(Relation relation, HeapTuple tuple);
extern void CacheInvalidateRelcache(Relation relation);