Here's a 2nd version of the "latch" patch. Now with a Windows implementation. Comments welcome.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com