[PATCH] introduce XLogLockBlockRangeForCleanup()

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема [PATCH] introduce XLogLockBlockRangeForCleanup()
Дата
Msg-id 20140613084012.GA16567@toroid.org
обсуждение исходный текст
Ответы Re: [PATCH] introduce XLogLockBlockRangeForCleanup()  (Amit Khandekar <amit.khandekar@enterprisedb.com>)
Список pgsql-hackers
nbtxlog.c:btree_xlog_vacuum() contains the following comment:

     * XXX we don't actually need to read the block, we just need to
     * confirm it is unpinned. If we had a special call into the
     * buffer manager we could optimise this so that if the block is
     * not in shared_buffers we confirm it as unpinned.

The attached patch introduces an XLogLockBlockRangeForCleanup() function
that addresses this, as well as a "special call into the buffer manager"
that makes it possible to lock the buffers without reading them.

The patch is by Simon Riggs, with some minor edits and testing by me.

I'm adding the patch to the CommitFest, and will follow up with some
performance numbers soon.

-- Abhijit

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: PL/pgSQL support to define multi variables once
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Few observations in replication slots related code