BTW while you're messing with checkpointer, I propose this patch tosimplify things.
-- Álvaro Herrera https://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services