X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 38BE8D1D412 for ; Sat, 7 Feb 2004 06:18:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 58639-06 for ; Sat, 7 Feb 2004 02:18:18 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 69C54D1DF70 for ; Sat, 7 Feb 2004 02:18:17 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i176H1w5017090; Sat, 7 Feb 2004 01:17:01 -0500 (EST) To: "Adham Helal" Cc: pgsql-admin@postgresql.org Subject: Re: Running postmaster with TCP/IP (ipv4) In-reply-to: References: Comments: In-reply-to "Adham Helal" message dated "Thu, 05 Feb 2004 19:42:03 +0200" Date: Sat, 07 Feb 2004 01:17:01 -0500 Message-ID: <17089.1076134621@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/107 X-Sequence-Number: 12281 "Adham Helal" 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