A note about hash-based catcache invalidations

Поиск
Список
Период
Сортировка
От Tom Lane
Тема A note about hash-based catcache invalidations
Дата
Msg-id 12778.1313529449@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: A note about hash-based catcache invalidations  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Re: A note about hash-based catcache invalidations  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
I'm looking into the idea I mentioned earlier:

> All is not entirely lost, however: there's still some possible
> performance benefit to be gained here, if we go to the scheme of
> identifying victim catcache entries by hashvalue only.  Currently,
> each heap_update in a cached catalog has to issue two sinval messages
> (per cache!): one against the old TID and one against the new TID.
> We'd be able to reduce that to one message in the common case where the
> hashvalue remains the same because the cache key columns didn't change.

Removing the tuple ID from sinval messages turns out to have slightly
wider impact than I thought at first, because the current coding passes
those to callback functions registered with
CacheRegisterSyscacheCallback, and there are a lot of 'em.  However,
only one of them seems to be doing anything with the tuplePtr argument,
namely PlanCacheFuncCallback.  We can make it work with the hash value
instead, which will be about as good as what we're doing now.

Any objections to that plan?
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: error: could not find pg_class tuple for index 2662
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: synchronized snapshots