Re: PGSTAT: bind(2): Can't assign requested address
От | Bjoern A. Zeeb |
---|---|
Тема | Re: PGSTAT: bind(2): Can't assign requested address |
Дата | |
Msg-id | 20060405150230.K76259@maildrop.int.zabbadoz.net обсуждение исходный текст |
Ответ на | Re: PGSTAT: bind(2): Can't assign requested address (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: PGSTAT: bind(2): Can't assign requested address
|
Список | pgsql-bugs |
On Wed, 5 Apr 2006, Tom Lane wrote: Hi, > "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> writes: >> Is there any reason why you explicitly disallow a posix local socket >> at that point in backend/postmaster/pgstat.c:pgstat_init: > > Because we want UDP, not a Unix socket. what you are giving there as hints is hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; A datagram socket (SOCK_DGRAM) is called "UDP Socket" when it assumes IP (AF_INET) or IPv6 (AF_INET6) as it's underlying protocol. But you can always use SOCK_DGRAM over AF_LOCAL. Stevens gives some good reasons to do so, especially if both peers are on the same host. If there is no need for using the INET(6) protcotol familiy (an I cannot see it as long as we stay on the same host) you may really want to consider using posix local sockets. Greetings Bjoern -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
В списке pgsql-bugs по дате отправления: