diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-20 03:54:19 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-20 03:54:19 +0000 |
commit | 013ed0bd814218076385de8bb8438e2020abdf50 (patch) | |
tree | 8ccb44ad89c17df8a9f7f10a65b6340157b91649 /src/bin/psql/help.c | |
parent | b25749cc64995ae668f6744765169b354a7f43be (diff) |
Add \conninfo command to psql, to show current connection info.
David Christensen. Reviewed by Steve Singer. Some further changes by me.
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r-- | src/bin/psql/help.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 47fa934db53..8351c5fb02b 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2010, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.159 2010/05/26 19:29:22 rhaas Exp $ + * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.160 2010/07/20 03:54:19 rhaas Exp $ */ #include "postgres_fe.h" @@ -162,7 +162,7 @@ slashUsage(unsigned short int pager) { FILE *output; - output = PageOutput(86, pager); + output = PageOutput(87, pager); /* if you add/remove a line here, change the row count above */ @@ -249,6 +249,7 @@ slashUsage(unsigned short int pager) PQdb(pset.db)); fprintf(output, _(" \\encoding [ENCODING] show or set client encoding\n")); fprintf(output, _(" \\password [USERNAME] securely change the password for a user\n")); + fprintf(output, _(" \\conninfo display information about current connection\n")); fprintf(output, "\n"); fprintf(output, _("Operating System\n")); |