The attached small patched fixes an incorrect usage of an error codein the extended stats code.
-- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services