]> granicus.if.org Git - postgresql/blob - src/include/utils/relcache.h
Massive commit to run PGINDENT on all *.c and *.h files.
[postgresql] / src / include / utils / relcache.h
1 /*-------------------------------------------------------------------------
2  *
3  * relcache.h--
4  *        Relation descriptor cache definitions.
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: relcache.h,v 1.7 1997/09/07 05:03:00 momjian Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef RELCACHE_H
14 #define RELCACHE_H
15
16 #include <utils/rel.h>
17
18 /*
19  * relation lookup routines
20  */
21 extern Relation RelationIdCacheGetRelation(Oid relationId);
22 extern Relation RelationIdGetRelation(Oid relationId);
23 extern Relation RelationNameGetRelation(char *relationName);
24
25 extern void             RelationClose(Relation relation);
26 extern void             RelationForgetRelation(Oid rid);
27 extern void             RelationIdInvalidateRelationCacheByRelationId(Oid relationId);
28
29 extern void
30                                 RelationIdInvalidateRelationCacheByAccessMethodId(Oid accessMethodId);
31
32 extern void             RelationCacheInvalidate(bool onlyFlushReferenceCountZero);
33
34 extern void             RelationRegisterRelation(Relation relation);
35 extern void             RelationPurgeLocalRelation(bool xactComitted);
36 extern void             RelationInitialize(void);
37
38 #endif                                                  /* RELCACHE_H */