GIN, XLogInsert and MarkBufferDirty

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема GIN, XLogInsert and MarkBufferDirty
Дата
Msg-id 46655284.9040004@enterprisedb.com
обсуждение исходный текст
Ответы Re: GIN, XLogInsert and MarkBufferDirty  (Teodor Sigaev <teodor@sigaev.ru>)
Re: GIN, XLogInsert and MarkBufferDirty  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi Teodor,

I think there's a little bug in ginInsertValue. A page is marked as 
dirty with MarkBufferDirty after writing the corresponding WAL record 
with XLogInsert. That's not safe, MarkBufferDirty needs to be called 
before XLogInsert to avoid a race condition in checkpoint, see comments 
in SyncOneBuffer in bufmgr.c for an explanation.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Create a GUC parametertemp_tablespacesthatallows selection of
Следующее
От: "Zeugswetter Andreas ADI SD"
Дата:
Сообщение: Re: TOAST usage setting