postgresql/src/backend/utils/cache
Tom Lane 8b9bc234ad Remove the limit on the number of entries allowed in catcaches, and
remove the infrastructure needed to enforce the limit, ie, the global
LRU list of cache entries.  On small-to-middling databases this wins
because maintaining the LRU list is a waste of time.  On large databases
this wins because it's better to keep more cache entries (we assume
such users can afford to use some more per-backend memory than was
contemplated in the Berkeley-era catcache design).  This provides a
noticeable improvement in the speed of psql \d on a 10000-table
database, though it doesn't make it instantaneous.

While at it, use per-catcache settings for the number of hash buckets
per catcache, rather than the former one-size-fits-all value.  It's a
bit silly to be using the same number of hash buckets for, eg, pg_am
and pg_attribute.  The specific values I used might need some tuning,
but they seem to be in the right ballpark based on CATCACHE_STATS
results from the standard regression tests.
2006-06-15 02:08:09 +00:00
..
catcache.c Remove the limit on the number of entries allowed in catcaches, and 2006-06-15 02:08:09 +00:00
inval.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
lsyscache.c Fix a bunch of problems with domains by making them use special input functions 2006-04-05 22:11:58 +00:00
Makefile $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
relcache.c Further minor simplification of relcache startup: don't need a static 2006-05-06 15:51:07 +00:00
syscache.c Remove the limit on the number of entries allowed in catcaches, and 2006-06-15 02:08:09 +00:00
typcache.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00