Re: 7.4Beta1 "failed to create socket: Address family not supported by protocol"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 7.4Beta1 "failed to create socket: Address family not supported by protocol"
Дата
Msg-id 2153.1060611703@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 7.4Beta1 "failed to create socket: Address family not supported by protocol"  (Robert Creager <Robert_Creager@LogicalChaos.org>)
Ответы Re: 7.4Beta1 "failed to create socket: Address family not
Список pgsql-general
Robert Creager <Robert_Creager@LogicalChaos.org> writes:
> Aug 10 14:11:27 thunder postgres[18613]: [1-1] LOG:  failed to create
> socket: Address family not supported by protocol

It's normal for this to happen if you have userland (libc) code that
supports IPv6 but your kernel isn't configured to do so.  The postmaster
will try to create both IPv4 and IPv6 sockets, because getaddrinfo()
told it to, but the IPv6 attempt will fail as above.

However, I can see that this is going to become a FAQ if we leave the
behavior alone.  I am wondering if we can suppress this message without
making life difficult for people who are trying to debug actual problems
in setting up sockets.

We could just ignore EAFNOSUPPORT failures, but I'm not sure if there
are any cases where such an error would genuinely be interesting.
Another possibility is to issue the per-failure messages at a very low
level (DEBUG2 maybe) and only LOG when we can't create any socket at
all.  Perhaps there are better answers.  Any ideas?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to prevent vacuum and reindex from deadlocking.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Concatenating String Literals in pgsql