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
 


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to