1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

remove catcache.h from syscache.h

Instead, place a forward struct declaration for struct catclist in
syscache.h.  This reduces header proliferation somewhat.
This commit is contained in:
Alvaro Herrera
2012-08-28 18:26:24 -04:00
parent 45326c5a11
commit fda0594fc2
11 changed files with 14 additions and 1 deletions

View File

@@ -16,7 +16,9 @@
#ifndef SYSCACHE_H
#define SYSCACHE_H
#include "utils/catcache.h"
#include "access/attnum.h"
#include "access/htup.h"
/* we purposedly do not include utils/catcache.h here */
/*
* SysCache identifiers.
@@ -119,6 +121,7 @@ extern uint32 GetSysCacheHashValue(int cacheId,
Datum key1, Datum key2, Datum key3, Datum key4);
/* list-search interface. Users of this must import catcache.h too */
struct catclist;
extern struct catclist *SearchSysCacheList(int cacheId, int nkeys,
Datum key1, Datum key2, Datum key3, Datum key4);