Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b43e32

Browse files
committed
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 doingrecently. That's too easily confused with TCP loopback connections,and there is no good reason to change the behavior anyway.
1 parentb1d3de6 commit8b43e32

File tree

1 file changed

+2
-2
lines changed
  • src/backend/libpq

1 file changed

+2
-2
lines changed

‎src/backend/libpq/ip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.22 2003/09/08 00:56:13 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.23 2003/09/12 20:18:51 tgl Exp $
1212
*
1313
* This file and the IPV6 implementation were initially provided by
1414
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
@@ -252,7 +252,7 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen,
252252

253253
if (node)
254254
{
255-
ret=snprintf(node,nodelen,"%s","localhost");
255+
ret=snprintf(node,nodelen,"%s","[local]");
256256
if (ret==-1||ret>nodelen)
257257
returnEAI_MEMORY;
258258
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp