]> granicus.if.org Git - postgresql/blobdiff - src/include/utils/inval.h
Fix initialization of fake LSN for unlogged relations
[postgresql] / src / include / utils / inval.h
index 328f73c543c5c539766ae13596a844d260b72882..940d53f90069279e22f7db07a3dcf87777415407 100644 (file)
@@ -4,10 +4,10 @@
  *       POSTGRES cache invalidation dispatcher definitions.
  *
  *
- * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/utils/inval.h,v 1.50 2010/08/13 20:10:54 rhaas Exp $
+ * src/include/utils/inval.h
  *
  *-------------------------------------------------------------------------
  */
 #include "utils/relcache.h"
 
 
-typedef void (*SyscacheCallbackFunction) (Datum arg, int cacheid, ItemPointer tuplePtr);
+typedef void (*SyscacheCallbackFunction) (Datum arg, int cacheid, uint32 hashvalue);
 typedef void (*RelcacheCallbackFunction) (Datum arg, Oid relid);
 
 
 extern void AcceptInvalidationMessages(void);
 
-extern void AtStart_Inval(void);
-
-extern void AtSubStart_Inval(void);
-
 extern void AtEOXact_Inval(bool isCommit);
 
 extern void AtEOSubXact_Inval(bool isCommit);
 
-extern void AtPrepare_Inval(void);
-
 extern void PostPrepare_Inval(void);
 
 extern void CommandEndInvalidationMessages(void);
 
-extern void CacheInvalidateHeapTuple(Relation relation, HeapTuple tuple);
+extern void CacheInvalidateHeapTuple(Relation relation,
+                                                                        HeapTuple tuple,
+                                                                        HeapTuple newtuple);
 
 extern void CacheInvalidateCatalog(Oid catalogId);
 
 extern void CacheInvalidateRelcache(Relation relation);
 
+extern void CacheInvalidateRelcacheAll(void);
+
 extern void CacheInvalidateRelcacheByTuple(HeapTuple classTuple);
 
 extern void CacheInvalidateRelcacheByRelid(Oid relid);
@@ -54,15 +52,13 @@ extern void CacheInvalidateSmgr(RelFileNodeBackend rnode);
 extern void CacheInvalidateRelmap(Oid databaseId);
 
 extern void CacheRegisterSyscacheCallback(int cacheid,
-                                                         SyscacheCallbackFunction func,
-                                                         Datum arg);
+                                                                                 SyscacheCallbackFunction func,
+                                                                                 Datum arg);
 
 extern void CacheRegisterRelcacheCallback(RelcacheCallbackFunction func,
-                                                         Datum arg);
-
-extern void CallSyscacheCallbacks(int cacheid, ItemPointer tuplePtr);
+                                                                                 Datum arg);
 
-extern void inval_twophase_postcommit(TransactionId xid, uint16 info,
-                                                 void *recdata, uint32 len);
+extern void CallSyscacheCallbacks(int cacheid, uint32 hashvalue);
 
-#endif   /* INVAL_H */
+extern void InvalidateSystemCaches(void);
+#endif                                                 /* INVAL_H */