GIN, XLogInsert and MarkBufferDirty - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject GIN, XLogInsert and MarkBufferDirty
Date
Msg-id 46655284.9040004@enterprisedb.com
Whole thread Raw
Responses Re: GIN, XLogInsert and MarkBufferDirty  (Teodor Sigaev <teodor@sigaev.ru>)
Re: GIN, XLogInsert and MarkBufferDirty  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: "Jaime Casanova"
Date:
Subject: Re: [COMMITTERS] pgsql: Create a GUC parametertemp_tablespacesthatallows selection of
Next
From: "Zeugswetter Andreas ADI SD"
Date:
Subject: Re: TOAST usage setting