Re: Fix overflow of bgwriter's request queue

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Fix overflow of bgwriter's request queue
Дата
Msg-id 20060116095906.4BD5.ITAGAKI.TAKAHIRO@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Fix overflow of bgwriter's request queue  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Fix overflow of bgwriter's request queue
Список pgsql-patches
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> > "ITAGAKI Takahiro" <itagaki.takahiro@lab.ntt.co.jp> wrote
> >> AbsorbFsyncRequests will be called during the fsync loop in my patch,
> >> so new files might be added to pendingOpsTable and they will be removed
> >> from the table *before* writing the pages belonging to them.
>
> I think this fear is incorrect.  At the time ForwardFsyncRequest is
> called, the backend must *already* have done whatever write it is
> concerned about fsync'ing.

Oops, I was wrong. Also, I see that there is no necessity for fearing
endless loops because hash-seqscan and HASH_ENTER don't conflict.

Attached is a revised patch. It became very simple, but I worry that
one magic number (BUFFERS_PER_ABSORB) is still left.

---
ITAGAKI Takahiro
NTT Cyber Space Laboratories


Вложения

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: patch to create system view that lists cursors
Следующее
От: David Fetter
Дата:
Сообщение: Uninstall scripts for contrib