Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)

From: Markus Wanner <markus(at)bluegap(dot)ch>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)
Date: 2010-09-07 08:22:51
Message-ID: 4C85F65B.4010009@bluegap.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 09/07/2010 09:06 AM, Heikki Linnakangas wrote:
> Setting a latch that's already set is very fast, so you want to keep it
> set until the last moment. See the coding in walsender for example, it
> goes to some lengths to avoid clearing the latch until it's very sure
> there's no more work for it to do. That helps to keep the overhead in
> backends committing transactions low. (no-one has tried to measure that
> yet, though)

Understood, thanks.

Markus

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2010-09-07 08:53:36 can we publish a aset interface?
Previous Message Markus Wanner 2010-09-07 08:01:20 Re: Synchronization levels in SR