Try connecting to both postgres and template1 databases to do the initial

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0ed5f90d736cc12b02c1adffcf1f3438e178834b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-07-08T16:51:30Z
Releases: 8.1.0
Try connecting to both postgres and template1 databases to do the initial
inspection of shared catalogs.  This allows pg_dumpall to continue to
work with pre-8.1 servers that likely won't have a database named postgres.
Also, suppress output of SYSID options for users and groups, since server
no longer does anything with these except emit a rude message.
There is much more to be done to update pg_dumpall for the roles feature,
but this at least makes it usable again.  Per gripe from Chris K-L.

Files

PathChange+/−
src/bin/pg_dump/pg_dumpall.c modified +46 −28