1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* inval.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* POSTGRES cache invalidation dispatcher definitions.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
2002-06-20 22:29:54 +02:00
|
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2002-06-20 22:29:54 +02:00
|
|
|
* $Id: inval.h,v 1.26 2002/06/20 20:29:53 momjian Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef INVAL_H
|
1996-08-28 03:59:28 +02:00
|
|
|
#define INVAL_H
|
|
|
|
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "access/htup.h"
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
|
2002-04-30 00:14:34 +02:00
|
|
|
typedef void (*CacheCallbackFunction) (Datum arg, Oid relid);
|
|
|
|
|
|
|
|
|
2001-06-19 21:42:16 +02:00
|
|
|
extern void AcceptInvalidationMessages(void);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2001-06-19 21:42:16 +02:00
|
|
|
extern void AtEOXactInvalidationMessages(bool isCommit);
|
|
|
|
|
|
|
|
extern void CommandEndInvalidationMessages(bool isCommit);
|
2000-01-10 07:30:56 +01:00
|
|
|
|
2002-03-03 18:47:56 +01:00
|
|
|
extern void CacheInvalidateHeapTuple(Relation relation, HeapTuple tuple);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2002-03-03 18:47:56 +01:00
|
|
|
extern void CacheInvalidateRelcache(Oid relationId);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2002-04-30 00:14:34 +02:00
|
|
|
extern void CacheRegisterSyscacheCallback(int cacheid,
|
|
|
|
CacheCallbackFunction func,
|
|
|
|
Datum arg);
|
|
|
|
|
|
|
|
extern void CacheRegisterRelcacheCallback(CacheCallbackFunction func,
|
|
|
|
Datum arg);
|
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* INVAL_H */
|