mirror of
https://github.com/postgres/postgres.git
synced 2026-02-23 01:40:33 -05:00
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* inval.h
|
|
* POSTGRES cache invalidation dispatcher definitions.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: inval.h,v 1.27 2002/09/04 20:31:45 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef INVAL_H
|
|
#define INVAL_H
|
|
|
|
#include "access/htup.h"
|
|
|
|
|
|
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);
|
|
|
|
extern void CacheRegisterSyscacheCallback(int cacheid,
|
|
CacheCallbackFunction func,
|
|
Datum arg);
|
|
|
|
extern void CacheRegisterRelcacheCallback(CacheCallbackFunction func,
|
|
Datum arg);
|
|
|
|
#endif /* INVAL_H */
|