Re: crash-safe visibility map, take five

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: crash-safe visibility map, take five
Дата
в 23:26:45
Msg-id
BANLkTikf0bcK=5Kq2aX4rB1KNJRi9t84Yw@mail.gmail.com
Ответ на
Список
Дерево обсуждения
crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Rob Wultsch <wultsch@gmail.com>
Re: crash-safe visibility map, take five Merlin Moncure <mmoncure@gmail.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Jesper Krogh <jesper@krogh.cc>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Tom Lane <tgl@sss.pgh.pa.us>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Merlin Moncure <mmoncure@gmail.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Pavan Deolasee <pavan.deolasee@gmail.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Noah Misch <noah@leadboat.com>
Re: crash-safe visibility map, take five Jeff Davis <pgsql@j-davis.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Jeff Davis <pgsql@j-davis.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Jeff Davis <pgsql@j-davis.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Jeff Davis <pgsql@j-davis.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Noah Misch <noah@leadboat.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
Re: crash-safe visibility map, take five Noah Misch <noah@leadboat.com>
Re: crash-safe visibility map, take five Robert Haas <robertmhaas@gmail.com>
On Fri, May 6, 2011 at 5:47 PM, Robert Haas  wrote:
> On Wed, Mar 30, 2011 at 8:52 AM, Heikki Linnakangas
>  wrote:
>>> Another question:
>>> To address the problem in
>>> http://archives.postgresql.org/pgsql-hackers/2010-02/msg02097.php
>>> , should we just clear the vm before the log of insert/update/delete?
>>> This may reduce the performance, is there another solution?
>>
>> Yeah, that's a straightforward way to fix it. I don't think the performance
>> hit will be too bad. But we need to be careful not to hold locks while doing
>> I/O, which might require some rearrangement of the code. We might want to do
>> a similar dance that we do in vacuum, and call visibilitymap_pin first, then
>> lock and update the heap page, and then set the VM bit while holding the
>> lock on the heap page.
>
> Here's an attempt at implementing the necessary gymnastics.

Is there a quick synopsis of why you have to do (sometimes) the
pin->lock->unlock->pin->lock mechanic? How come you only can fail to
get the pin at most once?

merlin

В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Merlin Moncure
Дата:
FAQ