summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-13 18:00:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-13 18:00:32 +0000
commit3e701a04febb0c423d36ce0c47721a4c276439a2 (patch)
treedcb58aee46d3c608f91f2685b97ff6f3ef0d39e0 /src/include
parentf4bce7e086288a0287e86196768cd7256a94f07c (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..80c8c2ab331 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.42 2008/03/13 18:00:32 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);