aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-09-12 20:18:51 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-09-12 20:18:51 +0000
commit8b43e325ebfab423c937ce384bcdaf70ed0b462e (patch)
treef77a0ac985e81fbecffa3109d6e15b33367e8c58 /src
parentb1d3de6b96a59676c6e03f577d6c8ad88302153e (diff)
downloadpostgresql-8b43e325ebfab423c937ce384bcdaf70ed0b462e.tar.gz
postgresql-8b43e325ebfab423c937ce384bcdaf70ed0b462e.zip
Revert to our pre-7.4 behavior of identifying Unix-socket connections in
ps status as '[local]', not as 'localhost' as the code has been doing recently. That's too easily confused with TCP loopback connections, and there is no good reason to change the behavior anyway.
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/libpq/ip.c b/src/backend/libpq/ip.c
index ddb81a0dfff..aaf6ddbe750 100644
--- a/src/backend/libpq/ip.c
+++ b/src/backend/libpq/ip.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.22 2003/09/08 00:56:13 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.23 2003/09/12 20:18:51 tgl Exp $
*
* This file and the IPV6 implementation were initially provided by
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
@@ -252,7 +252,7 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen,
if (node)
{
- ret = snprintf(node, nodelen, "%s", "localhost");
+ ret = snprintf(node, nodelen, "%s", "[local]");
if (ret == -1 || ret > nodelen)
return EAI_MEMORY;
}