Re: Inadequate thought about buffer locking during hot standby replay

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Inadequate thought about buffer locking during hot standby replay
Дата
Msg-id CA+U5nMLjiR_+32KX_F46heLDaFyZtPzCtKDFRoKNqLBMhZuWTg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Inadequate thought about buffer locking during hot standby replay  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 12 November 2012 14:51, Tom Lane <tgl@sss.pgh.pa.us> wrote:

>> The 9.0 code is broken, however. In
>> 9.0, when a child page is split, the parent and new children are kept
>> locked until the downlinks are inserted/updated. If a concurrent scan
>> comes along and sees that incomplete state, it will miss tuples on the
>> new right siblings. We rely on a rm_cleanup operation at the end of WAL
>> replay to fix that situation, if the downlink insertion record is not
>> there. I don't see any easy way to fix that, unfortunately. Perhaps we
>> could backpatch the 9.1 rewrite, now that it's gotten some real-world
>> testing, but it was a big change so I don't feel very comfortable doing
>> that.
>
> Me either.  Given the lack of field complaints, I think we're better
> advised to just leave it unfixed in 9.0.  It'd not be a step forward
> if we broke something trying to make this work.

Agreed. Most people running 9.0 with GIST indexes have already upgraded.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Inadequate thought about buffer locking during hot standby replay
Следующее
От: Markus Wanner
Дата:
Сообщение: Re: Enabling Checksums