Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
inval.h69 linesDownload Raw Back to utils
1/*-------------------------------------------------------------------------2 *3 * inval.h4 *	  POSTGRES cache invalidation dispatcher definitions.5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/utils/inval.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef INVAL_H15#define INVAL_H16 17#include "access/htup.h"18#include "storage/relfilelocator.h"19#include "utils/relcache.h"20 21extern PGDLLIMPORT int debug_discard_caches;22 23typedef void (*SyscacheCallbackFunction) (Datum arg, int cacheid, uint32 hashvalue);24typedef void (*RelcacheCallbackFunction) (Datum arg, Oid relid);25 26 27extern void AcceptInvalidationMessages(void);28 29extern void AtEOXact_Inval(bool isCommit);30 31extern void AtEOSubXact_Inval(bool isCommit);32 33extern void PostPrepare_Inval(void);34 35extern void CommandEndInvalidationMessages(void);36 37extern void CacheInvalidateHeapTuple(Relation relation,38									 HeapTuple tuple,39									 HeapTuple newtuple);40 41extern void CacheInvalidateCatalog(Oid catalogId);42 43extern void CacheInvalidateRelcache(Relation relation);44 45extern void CacheInvalidateRelcacheAll(void);46 47extern void CacheInvalidateRelcacheByTuple(HeapTuple classTuple);48 49extern void CacheInvalidateRelcacheByRelid(Oid relid);50 51extern void CacheInvalidateSmgr(RelFileLocatorBackend rlocator);52 53extern void CacheInvalidateRelmap(Oid databaseId);54 55extern void CacheRegisterSyscacheCallback(int cacheid,56										  SyscacheCallbackFunction func,57										  Datum arg);58 59extern void CacheRegisterRelcacheCallback(RelcacheCallbackFunction func,60										  Datum arg);61 62extern void CallSyscacheCallbacks(int cacheid, uint32 hashvalue);63 64extern void InvalidateSystemCaches(void);65extern void InvalidateSystemCachesExtended(bool debug_discard);66 67extern void LogLogicalInvalidations(void);68#endif							/* INVAL_H */69 
codekingpro/portable-devtools · Team Ai