Re: 7.4Beta1 "failed to create socket: Address family not - Mailing list pgsql-general

From Bruce Momjian
Subject Re: 7.4Beta1 "failed to create socket: Address family not
Date
Msg-id 200308121407.h7CE7In13810@candle.pha.pa.us
Whole thread Raw
In response to Re: 7.4Beta1 "failed to create socket: Address family not  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> The real problem is perhaps that the message gives no hint that it's
> >> talking about being unable to establish an IPv6 socket.  With that hint,
> >> perhaps people would realize that it's not a problem.
>
> > Not sure who took it out, but it gone.  The original message was:
> >   elog(LOG, "IPv6 support disabled --- perhaps the kernel does not support IPv6");
>
> That seems both wordy and not necessarily accurate.  What I had in mind
> was more like
>
>     "could not create IPv6 socket: %m"
>
> But I still wonder whether we shouldn't suppress the message entirely,
> at least for EAFNOSUPPORT errors.

If we suppress it entirely, there is no user-visible report that IPv6
isn't enabled on this computer, though if your kernel doesn't support
it, you would think they would know that, but I suspect many people
don't know it has to be enabled in the kernel --- hence the wording of
the original message.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 7.4Beta1 "failed to create socket: Address family not
Next
From: Teodor Sigaev
Date:
Subject: Re: Tsearch limitations