Re: Recovery control functions
Simon Riggs <simon@2ndquadrant.com>
From: Simon Riggs <simon@2ndQuadrant.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org
Date: 2011-01-14T12:54:43Z
Lists: 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