1996-08-28 01:59:28 +00:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-13 23:22:53 +00:00
|
|
|
* syscache.h
|
1997-09-07 05:04:48 +00:00
|
|
|
* System catalog cache definitions.
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
1999-08-09 03:13:31 +00:00
|
|
|
* See also lsyscache.h, which provides convenience routines for
|
|
|
|
* common cache-lookup operations.
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
2000-01-26 05:58:53 +00:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
2000-06-17 04:56:39 +00:00
|
|
|
* $Id: syscache.h,v 1.26 2000/06/17 04:56:29 tgl Exp $
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 05:04:48 +00:00
|
|
|
#ifndef SYSCACHE_H
|
1996-08-28 01:59:28 +00:00
|
|
|
#define SYSCACHE_H
|
|
|
|
|
1999-07-15 23:04:24 +00:00
|
|
|
#include "access/htup.h"
|
1996-10-19 04:16:04 +00:00
|
|
|
|
1996-08-28 01:59:28 +00:00
|
|
|
/*
|
1997-09-07 05:04:48 +00:00
|
|
|
* Declarations for util/syscache.c.
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
1997-09-07 05:04:48 +00:00
|
|
|
* SysCache identifiers.
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
1997-09-07 05:04:48 +00:00
|
|
|
* The order of these must match the order
|
2000-06-17 04:56:39 +00:00
|
|
|
* they are entered into the structure cacheinfo[] in syscache.c.
|
|
|
|
* Keep them in alphabetical order.
|
1996-08-28 01:59:28 +00:00
|
|
|
*/
|
|
|
|
|
1999-11-22 17:56:41 +00:00
|
|
|
#define AGGNAME 0
|
|
|
|
#define AMNAME 1
|
|
|
|
#define AMOPOPID 2
|
|
|
|
#define AMOPSTRATEGY 3
|
|
|
|
#define ATTNAME 4
|
|
|
|
#define ATTNUM 5
|
|
|
|
#define CLADEFTYPE 6
|
|
|
|
#define CLANAME 7
|
|
|
|
#define GRONAME 8
|
|
|
|
#define GROSYSID 9
|
|
|
|
#define INDEXRELID 10
|
|
|
|
#define INHRELID 11
|
|
|
|
#define LANGNAME 12
|
|
|
|
#define LANGOID 13
|
|
|
|
#define LISTENREL 14
|
|
|
|
#define OPERNAME 15
|
|
|
|
#define OPEROID 16
|
|
|
|
#define PROCNAME 17
|
|
|
|
#define PROCOID 18
|
|
|
|
#define RELNAME 19
|
|
|
|
#define RELOID 20
|
|
|
|
#define RULENAME 21
|
|
|
|
#define RULEOID 22
|
1999-11-24 16:52:50 +00:00
|
|
|
#define SHADOWNAME 23
|
|
|
|
#define SHADOWSYSID 24
|
|
|
|
#define STATRELID 25
|
|
|
|
#define TYPENAME 26
|
|
|
|
#define TYPEOID 27
|
1996-08-28 01:59:28 +00:00
|
|
|
|
1997-09-08 02:41:22 +00:00
|
|
|
extern void zerocaches(void);
|
|
|
|
extern void InitCatalogCache(void);
|
1998-09-01 04:40:42 +00:00
|
|
|
extern HeapTuple SearchSysCacheTuple(int cacheId,
|
1998-08-19 02:04:17 +00:00
|
|
|
Datum key1, Datum key2, Datum key3, Datum key4);
|
2000-06-17 04:56:39 +00:00
|
|
|
extern HeapTuple SearchSysCacheTupleCopy(int cacheId,
|
|
|
|
Datum key1, Datum key2, Datum key3, Datum key4);
|
2000-01-23 03:43:24 +00:00
|
|
|
extern Datum SysCacheGetAttr(int cacheId, HeapTuple tup,
|
2000-06-17 04:56:39 +00:00
|
|
|
AttrNumber attributeNumber, bool *isNull);
|
1996-08-28 01:59:28 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
#endif /* SYSCACHE_H */
|