Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> One possible way to get a real speedup here would be to look for ways
> to trim the number of catcaches.
BTW, it's not going to help to remove catcaches that have a small
initial size, as the pg_am cache certainly does. If the bucket zeroing
cost is really something to minimize, it's only the caches with the
largest nbuckets counts that are worth considering --- and we certainly
can't remove those without penalty.
regards, tom lane