diff options
| author | Heikki Linnakangas | 2013-04-16 12:01:21 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2013-04-16 12:07:58 +0000 |
| commit | 87ae9e72654ddddf25433b8a178e9268cf03f5b5 (patch) | |
| tree | c81224ef14cc967c41bd0976e5bc5dbf19f7234b /src/include/utils | |
| parent | c74d586d2fc8aeaa303d8c60a8a9d959fdc5e791 (diff) | |
Remove some unused and seldom used fields from RelationAmInfo.
This saves some memory from each index relcache entry. At least on a 64-bit
machine, it saves just enough to shrink a typical relcache entry's memory
usage from 2k to 1k. That's nice if you have a lot of backends and a lot of
indexes.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/rel.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 1fd3f67b1e4..632743af943 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -47,8 +47,8 @@ typedef LockInfoData *LockInfo; /* - * Cached lookup information for the index access method functions defined - * by the pg_am row associated with an index relation. + * Cached lookup information for the frequently used index access method + * functions, defined by the pg_am row associated with an index relation. */ typedef struct RelationAmInfo { @@ -60,13 +60,7 @@ typedef struct RelationAmInfo FmgrInfo amendscan; FmgrInfo ammarkpos; FmgrInfo amrestrpos; - FmgrInfo ambuild; - FmgrInfo ambuildempty; - FmgrInfo ambulkdelete; - FmgrInfo amvacuumcleanup; FmgrInfo amcanreturn; - FmgrInfo amcostestimate; - FmgrInfo amoptions; } RelationAmInfo; |
