postgresql/src/include/utils/inval.h

45 lines
1.2 KiB
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* inval.h
* POSTGRES cache invalidation dispatcher definitions.
*
*
2003-08-04 04:40:20 +02:00
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/utils/inval.h,v 1.31 2004/05/06 16:10:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef INVAL_H
#define INVAL_H
#include "access/htup.h"
2002-04-30 00:14:34 +02:00
typedef void (*CacheCallbackFunction) (Datum arg, Oid relid);
extern void AcceptInvalidationMessages(void);
extern void AtEOXactInvalidationMessages(bool isCommit);
extern void CommandEndInvalidationMessages(bool isCommit);
extern void CacheInvalidateHeapTuple(Relation relation, HeapTuple tuple);
extern void CacheInvalidateRelcache(Relation relation);
extern void CacheInvalidateRelcacheByTuple(HeapTuple classTuple);
extern void CacheInvalidateRelcacheByRelid(Oid relid);
2002-04-30 00:14:34 +02:00
extern void CacheRegisterSyscacheCallback(int cacheid,
2002-09-04 22:31:48 +02:00
CacheCallbackFunction func,
Datum arg);
2002-04-30 00:14:34 +02:00
extern void CacheRegisterRelcacheCallback(CacheCallbackFunction func,
2002-09-04 22:31:48 +02:00
Datum arg);
2002-04-30 00:14:34 +02:00
#endif /* INVAL_H */