Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / storage / sinvaladt.h
blob1224e083d41c11cb56003212bd6d9e3d9b030e2a
1 /*-------------------------------------------------------------------------
3 * sinvaladt.h
4 * POSTGRES shared cache invalidation data manager.
6 * The shared cache invalidation manager is responsible for transmitting
7 * invalidation messages between backends. Any message sent by any backend
8 * must be delivered to all already-running backends before it can be
9 * forgotten. (If we run out of space, we instead deliver a "RESET"
10 * message to backends that have fallen too far behind.)
12 * The struct type SharedInvalidationMessage, defining the contents of
13 * a single message, is defined in sinval.h.
15 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
16 * Portions Copyright (c) 1994, Regents of the University of California
18 * $PostgreSQL$
20 *-------------------------------------------------------------------------
22 #ifndef SINVALADT_H
23 #define SINVALADT_H
25 #include "storage/sinval.h"
28 * prototypes for functions in sinvaladt.c
30 extern Size SInvalShmemSize(void);
31 extern void CreateSharedInvalidationState(void);
32 extern void SharedInvalBackendInit(void);
33 extern bool BackendIdIsActive(int backendID);
35 extern void SIInsertDataEntries(const SharedInvalidationMessage *data, int n);
36 extern int SIGetDataEntries(SharedInvalidationMessage *data, int datasize);
37 extern void SICleanupQueue(bool callerHasWriteLock, int minFree);
39 extern LocalTransactionId GetNextLocalTransactionId(void);
41 #endif /* SINVALADT_H */