Re: Small reduction in memory usage of index relcache entries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Small reduction in memory usage of index relcache entries
Дата
Msg-id 13923.1365809896@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Small reduction in memory usage of index relcache entries  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> Looking closer at where that memory is spent, a lot of it goes into the 
> FmgrInfo structs in RelationAmInfo. But some of them are outright unused 
> (ambuild, ambuildempty, amcostestimate, amoptions), and a few others 
> hardly are called so seldom that they hardly need to be cached 
> (ambuildelete, ambacuumcleanup). Removing those fields, patch attached, 
> reduces the memory usage nicely:

+1, but it would look nicer if you could encapsulate the code in some
macro analogous to GET_REL_PROCEDURE(), perhaps call it
GET_UNCACHED_REL_PROCEDURE()?
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ants Aasma
Дата:
Сообщение: Re: Enabling Checksums
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Hash Join cost estimates