diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-08-28 18:26:24 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-08-28 18:36:39 -0400 |
commit | fda0594fc2f4c98ee50ea02fa196ca51db81ea70 (patch) | |
tree | 9a35d44019af7d943a2f93140961d93c23a95b72 /src/include/utils/syscache.h | |
parent | 45326c5a11530cff5db99c6d4b393439cc901f26 (diff) | |
download | postgresql-fda0594fc2f4c98ee50ea02fa196ca51db81ea70.tar.gz postgresql-fda0594fc2f4c98ee50ea02fa196ca51db81ea70.zip |
remove catcache.h from syscache.h
Instead, place a forward struct declaration for struct catclist in
syscache.h. This reduces header proliferation somewhat.
Diffstat (limited to 'src/include/utils/syscache.h')
-rw-r--r-- | src/include/utils/syscache.h | 5 |
1 files changed, 4 insertions, 1 deletions
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); |