Re: B-tree parent pointer and checkpoints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: B-tree parent pointer and checkpoints
Date: 2010-11-10 22:26:17
Message-ID: 12071.1289427977@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> The new rule is that before you start a multi-WAL-record operation that
> needs to be completed at end of recovery if you crash in the middle, you
> call HoldCheckpoint(), and once you're finished, ResumeCheckpoint().

What happens if you error out in between? Or is it assumed that the
*entire* sequence is a critical section? If it has to be that way,
one might wonder what's the point of trying to split it into multiple
WAL records.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2010-11-10 22:39:04 Re: multi-platform, multi-locale regression tests
Previous Message Andrew Dunstan 2010-11-10 22:15:16 Re: multi-platform, multi-locale regression tests