mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user