From fda0594fc2f4c98ee50ea02fa196ca51db81ea70 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Tue, 28 Aug 2012 18:26:24 -0400 Subject: remove catcache.h from syscache.h Instead, place a forward struct declaration for struct catclist in syscache.h. This reduces header proliferation somewhat. --- src/include/utils/syscache.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/utils/syscache.h') diff --git a/src/include/utils/syscache.h b/src/include/utils/syscache.h index 49fdabaa03f..d1a98559062 100644 --- a/src/include/utils/syscache.h +++ b/src/include/utils/syscache.h @@ -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); -- cgit v1.2.3