postgresql/src/include/utils/inval.h

41 lines
1.1 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.29 2003/11/29 22:41:15 pgsql 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(Oid relationId);
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 */