1996-08-27 21:59:28 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* relcache.h
|
1997-09-07 01:04:48 -04:00
|
|
|
* Relation descriptor cache definitions.
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
|
*
|
1999-05-01 15:09:46 -04:00
|
|
|
* $Id: relcache.h,v 1.12 1999/05/01 19:09:43 tgl Exp $
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
1997-09-07 01:04:48 -04:00
|
|
|
#ifndef RELCACHE_H
|
1996-08-27 21:59:28 -04:00
|
|
|
#define RELCACHE_H
|
|
|
|
|
|
1996-11-04 06:51:27 -05:00
|
|
|
#include <utils/rel.h>
|
1996-08-27 21:59:28 -04:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* relation lookup routines
|
|
|
|
|
*/
|
|
|
|
|
extern Relation RelationIdCacheGetRelation(Oid relationId);
|
|
|
|
|
extern Relation RelationIdGetRelation(Oid relationId);
|
|
|
|
|
extern Relation RelationNameGetRelation(char *relationName);
|
|
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void RelationClose(Relation relation);
|
|
|
|
|
extern void RelationForgetRelation(Oid rid);
|
|
|
|
|
extern void RelationIdInvalidateRelationCacheByRelationId(Oid relationId);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1998-01-24 17:50:57 -05:00
|
|
|
extern void RelationIdInvalidateRelationCacheByAccessMethodId(Oid accessMethodId);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void RelationCacheInvalidate(bool onlyFlushReferenceCountZero);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void RelationRegisterRelation(Relation relation);
|
|
|
|
|
extern void RelationPurgeLocalRelation(bool xactComitted);
|
|
|
|
|
extern void RelationInitialize(void);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1999-05-01 15:09:46 -04:00
|
|
|
/*
|
|
|
|
|
* both vacuum.c and relcache.c need to know the name of the relcache init file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#define RELCACHE_INIT_FILENAME "pg_internal.init"
|
|
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
#endif /* RELCACHE_H */
|