diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-20 14:14:30 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-20 14:14:30 +0000 |
commit | 8ceb68b0ce70293038507c4c8f800767dbee8905 (patch) | |
tree | f3421b0bb326d0c8b21b9f72782fc3f07c935314 | |
parent | 013ed0bd814218076385de8bb8438e2020abdf50 (diff) | |
download | postgresql-8ceb68b0ce70293038507c4c8f800767dbee8905.tar.gz postgresql-8ceb68b0ce70293038507c4c8f800767dbee8905.zip |
Have \conninfo mention the port even for local sockets.
Per discussion with David Christensen, there can be multiple
instances of PG accessible via local sockets, and you need the port
to see which one you're actually connected to. David's original
patch worked this way, but I inadvertently ripped it out during
commit.
-rw-r--r-- | src/bin/psql/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index affdffce1d9..c90bf2805ee 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2010, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.222 2010/07/20 03:54:19 rhaas Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.223 2010/07/20 14:14:30 rhaas Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -306,8 +306,8 @@ exec_command(const char *cmd, printf("You are connected to database \"%s\" on host \"%s\" at port \"%s\" as user \"%s\".\n", db, host, PQport(pset.db), PQuser(pset.db)); else - printf("You are connected to database \"%s\" via local socket as user \"%s\".\n", - db, PQuser(pset.db)); + printf("You are connected to database \"%s\" via local socket at port \"%s\" as user \"%s\".\n", + db, PQport(pset.db), PQuser(pset.db)); } /* \copy */ |