Not really related to this complaint and patch, but as far as I can see, libpq events go completely untested in the core source. Maybe we should come up with a test module or something?
-- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/