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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user