pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: zhaozp@uxsino.com <zhaozp@uxsino.com>
To: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: postmaster.c ,have a warning: pg_getnameinfo_all() failed
Date: Tue, 14 Mar 2017 13:53:53 +0800
Message-ID: <201703141352529603355@uxsino.com> (raw)
References: <20160418093244.22924.55715@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>


static void
4071 BackendInitialize(Port *port)
4072 {
4073     int         status;
4074     int         ret;
4075     char        remote_host[NI_MAXHOST];
4076     char        remote_port[NI_MAXSERV];
4077     char        remote_ps_data[NI_MAXHOST];
4078 


4129 
4130     /*
4131      * Get the remote host name and port for logging and status display.
4132      */
4133     remote_host[0] = '\0';
4134     remote_port[0] = '\0';
4135     if ((ret = pg_getnameinfo_all(&port->raddr.addr, port->raddr.salen,
4136                                   remote_host, sizeof(remote_host),
4137                                   remote_port, sizeof(remote_port),
4138                  (log_hostname ? 0 : NI_NUMERICHOST) | NI_NUMERICSERV)) != 0)
4139         ereport(WARNING,
4140                 (errmsg_internal("pg_getnameinfo_all() failed: %s",
4141                                  gai_strerror(ret))));


     Modified below, correct?
4136                                   remote_host, NI_MAXHOST,
4137                                   remote_port, NI_MAXSERV,



view thread (2+ messages)  latest in thread

Message-ID: <201703141352529603355@uxsino.com>
Permalink:  ../201703141352529603355@uxsino.com/
Also on:    postgresql.org/message-id/201703141352529603355@uxsino.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: zhaozp@uxsino.com
  Subject: Re: postmaster.c ,have a warning: pg_getnameinfo_all() failed
  In-Reply-To: <201703141352529603355@uxsino.com>
  References: <20160418093244.22924.55715@wrigleys.postgresql.org> <201703141352529603355@uxsino.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox