RE: [PATCH] Speedup truncates of relation forks

Поиск
Список
Период
Сортировка
От Jamison, Kirk
Тема RE: [PATCH] Speedup truncates of relation forks
Дата
Msg-id D09B13F772D2274BB348A310EE3027C64E3E2F@g01jpexmbkw24
обсуждение исходный текст
Ответ на RE: [PATCH] Speedup truncates of relation forks  ("Jamison, Kirk" <k.jamison@jp.fujitsu.com>)
Ответы Re: [PATCH] Speedup truncates of relation forks  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-hackers
Hi all,

Attached is the v2 of the patch. I added the optimization that Sawada-san
suggested for DropRelFileNodeBuffers, although I did not acquire the lock
when comparing the minBlock and target block. 

There's actually a comment written in the source code that we could
pre-check buffer tag for forkNum and blockNum, but given that FSM and VM
blocks are small compared to main fork's, the additional benefit of doing so 
would be small.

>* We could check forkNum and blockNum as well as the rnode, but the
>* incremental win from doing so seems small.

I personally think it's alright not to include the suggested pre-checking.
If that's the case, we can just follow the patch v1 version.

Thoughts?

Comments and reviews from other parts of the patch are also very much welcome.

Regards,
Kirk Jamison

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Still some references to configure-time WAL segment size option inmsvc scripts
Следующее
От: Kyotaro Horiguchi
Дата:
Сообщение: Strange error message in xlog.c