On Wed, 5 Apr 2006, Tom Lane wrote:
Hi,
"Bjoern A. Zeeb" <[EMAIL PROTECTED]> 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
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq