From: Bruce Momjian Date: Wed, 15 Aug 2012 23:17:26 +0000 (-0400) Subject: Add C comment about new \c parameter requirement for crashed connections. X-Git-Tag: REL9_3_BETA1~1084 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d55f1b852d4fe87f2a4d16ea3f0ce11a7019a352;p=thirdparty%2Fpostgresql.git Add C comment about new \c parameter requirement for crashed connections. --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 2cd3ab4cf72..205bb507fbc 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1514,6 +1514,11 @@ do_connect(char *dbname, char *user, char *host, char *port) if (!o_conn && (!dbname || !user || !host || !port)) { + /* + * We don't know the supplied connection parameters and don't want + * to connect to the wrong database by using defaults, so require + * all parameters to be specified. + */ fputs(_("All connection parameters must be supplied because no database connection exists\n"), stderr); return false; }