Re: Recovery control functions - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Recovery control functions
Date
Msg-id 1295009683.12442.89.camel@ebony
Whole thread Raw
In response to Re: Recovery control functions  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Fri, 2011-01-14 at 14:27 +0200, Heikki Linnakangas wrote:

> > Trouble is, if you wait on Latch X and other processes send wakeup
> > assuming you were waiting on Latch Y, then this will erroneously wake
> > you up.
> 
> The signal will wake up the process, but WaitLatch will quickly go back 
> to sleep if it wasn't for the latch we're waiting for. I don't think 
> that causes any meaningful performance issues.

Neither does polling.

> So that's all handled within the latch code.

I'll adjust the comment.

-- Simon Riggs           http://www.2ndQuadrant.com/books/PostgreSQL Development, 24x7 Support, Training and Services



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: [COMMITTERS] pgsql: Exit from base backups when shutdown is requested
Next
From: Magnus Hagander
Date:
Subject: Re: Allowing multiple concurrent base backups