If running in Travis-CI, use pg_dump directly.