[BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed

Поиск
Список
Период
Сортировка
От zhaozp@uxsino.com
Тема [BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed
Дата
Msg-id 201703141352529603355@uxsino.com
обсуждение исходный текст
Ответ на BUG #14096: run pgbench, db crash  (zhaozp@uxsino.com)
Ответы Re: [BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: [BUGS] [HACKERS] Two phase commit in ECPG
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] postmaster.c ,have a warning: pg_getnameinfo_all() failed