]> granicus.if.org Git - postgresql/blobdiff - src/bin/psql/help.c
psql: fix \connect with URIs and conninfo strings
[postgresql] / src / bin / psql / help.c
index f58f5e52f3303d42fa91ffa7c25b9d4e458cb99f..ea05c3e37be9d68cd668c91cbbe39d8762bada3f 100644 (file)
@@ -260,11 +260,11 @@ slashUsage(unsigned short int pager)
 
        fprintf(output, _("Connection\n"));
        if (currdb)
-               fprintf(output, _("  \\c[onnect] [DBNAME|- USER|- HOST|- PORT|-]\n"
+               fprintf(output, _("  \\c[onnect] {[DBNAME|- USER|- HOST|- PORT|-] | conninfo}\n"
                                                  "                         connect to new database (currently \"%s\")\n"),
                                currdb);
        else
-               fprintf(output, _("  \\c[onnect] [DBNAME|- USER|- HOST|- PORT|-]\n"
+               fprintf(output, _("  \\c[onnect] {[DBNAME|- USER|- HOST|- PORT|-] | conninfo}\n"
                                                  "                         connect to new database (currently no connection)\n"));
        fprintf(output, _("  \\encoding [ENCODING]   show or set client encoding\n"));
        fprintf(output, _("  \\password [USERNAME]   securely change the password for a user\n"));