[BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed - Mailing list pgsql-bugs

From zhaozp@uxsino.com
Subject [BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed
Date
Msg-id 201703141352529603355@uxsino.com
Whole thread Raw
In response to BUG #14096: run pgbench, db crash  (zhaozp@uxsino.com)
Responses Re: [BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed
List pgsql-bugs

static void
4071 BackendInitialize(Port *port)
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];


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,

pgsql-bugs by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [BUGS] [HACKERS] Two phase commit in ECPG
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed