Skip site navigation (1) Skip section navigation (2)

Re: GIN, XLogInsert and MarkBufferDirty

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: teodor(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: GIN, XLogInsert and MarkBufferDirty
Date: 2007-06-05 15:14:52
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
> ... MarkBufferDirty needs to be called 
> before XLogInsert to avoid a race condition in checkpoint, see comments 
> in SyncOneBuffer in bufmgr.c for an explanation.

Right, see also the "Write-Ahead Log coding" section in
src/backend/access/transam/README (which is maybe not a very good place
for it, but it doesn't seem like bufmgr's turf either).

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2007-06-05 15:18:36
Subject: Re: [HACHERS] privilege check: column level only?
Previous:From: Bernd HelmleDate: 2007-06-05 15:14:30
Subject: Re: [COMMITTERS] pgsql: Create a GUC parametertemp_tablespacesthat allows selection of

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group