From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adham Helal <aahelal@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Running postmaster with TCP/IP (ipv4)
Date: Sat, 07 Feb 2004 01:17:01 -0500
Message-ID: <17089.1076134621@sss.pgh.pa.us> (raw)
In-Reply-To: <Law15-F51tqy528dWlm000090d2@hotmail.com>
References: <Law15-F51tqy528dWlm000090d2@hotmail.com>
"Adham Helal" <aahelal@hotmail.com> writes:
> when i start postmaster with -i option i get this error “could not
> create IPv6 socket: Address family not supported by protocol” and i
> dont want ipv6 in the first place. I only want ipv4. I tried to find
> something to disable ipv6 but i didn't
This isn't really an error, and you can safely ignore it. The reason
you see it is that getaddrinfo() is returning an IPv6 address as well as
an IPv4 address for "localhost". Postgres tries to bind to both (as I
think it should), but your kernel isn't configured to support IPv6 so
it bounces that attempt. The IPv4 try succeeds so Postgres is happy.
If you don't like seeing the message in your logs, the solution is to
get glibc and the kernel on the same page --- either both supporting
IPv6 or both not. I am not sure where exactly you configure what
getaddrinfo will translate "localhost" to; possibly /etc/hosts or your
DNS setup, but I've not worked with an IPv6-enabled system myself.
Anyway that's what you need to change.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, aahelal@hotmail.com
Subject: Re: Running postmaster with TCP/IP (ipv4)
In-Reply-To: <17089.1076134621@sss.pgh.pa.us>
References: <Law15-F51tqy528dWlm000090d2@hotmail.com> <17089.1076134621@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox