OSDN Git Service

Have \conninfo mention the port even for local sockets.
authorRobert Haas <rhaas@postgresql.org>
Tue, 20 Jul 2010 14:14:30 +0000 (14:14 +0000)
committerRobert Haas <rhaas@postgresql.org>
Tue, 20 Jul 2010 14:14:30 +0000 (14:14 +0000)
commit8ceb68b0ce70293038507c4c8f800767dbee8905
treef3421b0bb326d0c8b21b9f72782fc3f07c935314
parent013ed0bd814218076385de8bb8438e2020abdf50
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.
src/bin/psql/command.c