Re: Add pg_buffercache_mark_dirty[_all] functions to the pg_buffercache

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Add pg_buffercache_mark_dirty[_all] functions to the pg_buffercache
Дата
Msg-id aSfQx0GafuMwCRWD@paquier.xyz
обсуждение исходный текст
Ответ на Re: Add pg_buffercache_mark_dirty[_all] functions to the pg_buffercache  (邱宇航 <iamqyh@gmail.com>)
Список pgsql-hackers
On Thu, Nov 27, 2025 at 11:07:43AM +0800, 邱宇航 wrote:
> Yes, and we got another two loops in pg_buffercache_evict functions,
> and more loops in Drop/Flush relation/database buffers functions. Maybe
> we can abstract them into a generic loop function and it takes a buffer
> handler function pointer to avoid duplication?

I was considering an option when looking at the patch this morning,
but could not get behind it as it hides the internals of the routines
inside one extra layer of routines..  So what Nazir has done seems
like a balance good enough, at least for me.
--
Michael

Вложения

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