Re: Let's make PostgreSQL multi-threaded

Поиск
Список
Период
Сортировка
Искать
От
Andreas Karlsson
Тема
Re: Let's make PostgreSQL multi-threaded
Дата
Msg-id
40b563bb-f4f1-9255-3c66-44c4fbcfd07f@proxel.se
Ответ на
Список
Дерево обсуждения
Re: Let's make PostgreSQL multi-threaded Ranier Vilela <ranier.vf@gmail.com>
Re: Let's make PostgreSQL multi-threaded Heikki Linnakangas <hlinnaka@iki.fi>
Re: Let's make PostgreSQL multi-threaded Pavel Stehule <pavel.stehule@gmail.com>
Re: Let's make PostgreSQL multi-threaded Merlin Moncure <mmoncure@gmail.com>
Re: Let's make PostgreSQL multi-threaded Heikki Linnakangas <hlinnaka@iki.fi>
Re: Let's make PostgreSQL multi-threaded Bruce Momjian <bruce@momjian.us>
Re: Let's make PostgreSQL multi-threaded Ranier Vilela <ranier.vf@gmail.com>
On 6/13/23 10:20, Konstantin Knizhnik wrote:
> The fact that it is flushed out upon reconnection can not 
> help much: what if backends are not going to disconnect?

This is why many connection pools have a maximum connection lifetime 
which can be configured. So in practice flushing all caches on 
disconnect helps a lot.

The nice proper solution might very well be adding a maximum cache sizes 
and replacement but it obviously makes the cache more complex and adds 
an new GUC. Probably worth it, but flushing caches on disconnect is a 
simple solution which works well in practice for many but no all workloads.

Andreas



В списке pgsql-hackers по дате отправления
От: Amit Langote
Дата:
От: Hayato Kuroda (Fujitsu)
Дата:
FAQ