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
|
|
|
*
|
|
|
|
*
|
2003-08-04 04:40:20 +02:00
|
|
|
* Portions Copyright (c) 1996-2003, 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
|
|
|
*
|
2003-11-29 23:41:33 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/utils/inval.h,v 1.29 2003/11/29 22:41:15 pgsql 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,
|
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
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* INVAL_H */
|