Make command-line tools smarter about finding a DB to connect to.

Robert Haas <rhaas@postgresql.org>

Commit: 68281e00540a29e7f9bfc154c25a78b875f560d1
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-12-06T13:48:15Z
Releases: 9.2.0
Make command-line tools smarter about finding a DB to connect to.

If unable to connect to "postgres", try "template1".  This allows things to
work more smoothly in the case where the postgres database has been
dropped.  And just in case that's not good enough, also allow the user to
specify a maintenance database to be used for the initial connection, to
cover the case where neither postgres nor template1 is suitable.

Files