Uh, the pg_dump part checks for version 80400, shouldn't it be 90400?
-- Álvaro Herrera http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services