X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id E2F929FB1B8 for ; Thu, 15 Jun 2006 23:39:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 86676-07 for ; Thu, 15 Jun 2006 23:39:12 -0300 (ADT) X-Greylist: delayed 00:32:29.555122 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id BB7D59FA5D2 for ; Thu, 15 Jun 2006 23:39:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from smtp5.suscom.net (smtp5.suscom.net [64.78.83.245]) by svr4.postgresql.org (Postfix) with ESMTP id 0D1DC5AF03B for ; Fri, 16 Jun 2006 02:06:42 +0000 (GMT) Received: from localhost (unknown [127.0.0.1]) by smtp5.suscom.net (Postfix) with ESMTP id 39C51510430 for ; Thu, 15 Jun 2006 22:06:34 -0400 (EDT) Received: from smtp5.suscom.net ([127.0.0.1]) by localhost (smtp5 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03330-01-6 for ; Thu, 15 Jun 2006 22:06:25 -0400 (EDT) Received: from [192.168.29.51] (ip7.244.23.209.suscom.net [209.23.244.7]) by smtp5.suscom.net (Postfix) with SMTP id 8A08C51042E for ; Thu, 15 Jun 2006 22:06:25 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <27882.1150382418@sss.pgh.pa.us> References: <7F9DD4F9-A334-4A52-8501-1DA780CD4D2E@knauth.org> <27882.1150382418@sss.pgh.pa.us> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org> Content-Transfer-Encoding: 7bit From: Geoffrey Knauth Subject: Re: listen_addresses = '*' ok, specific address(es) no Date: Thu, 15 Jun 2006 22:06:25 -0400 To: pgsql-sql@postgresql.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by amavisd-new .250 at suscom.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/193 X-Sequence-Number: 25429 Tom, I omitted the LOG and HINT lines before. LOG: could not bind IPv4 socket: Can't assign requested address HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. WARNING: could not create listen socket for "192.168.1.33" FATAL: could not create any TCP/IP sockets This works fine if I use '*' instead of '192.168.1.33'. Andrew Sullivan wrote: > Well, do you actually have an interface with that address? I think I do, in that the machine's wireless interface is set up with a 192.168.1.x/24 address and 1.33 is on the same subnet. Or maybe I'm misunderstanding. I thought the purpose of listen_addresses was to allowing incoming connections only from listed addresses. Geoff On Jun 15, 2006, at 10:40, Tom Lane wrote: > Geoffrey Knauth writes: >> I'm running PostgreSQL 8.1.3. In my postgresql.conf, the following >> works: >> listen_addresses = '*' > >> but the following does not: >> listen_addresses = '192.168.1.33' > >> I get an error: >> WARNING: could not create listen socket for "192.168.1.33" >> FATAL: could not create any TCP/IP sockets > > There should be more info than that --- AFAICS all the failure > paths in > that code emit LOG messages. Perhaps you have log_min_messages set > too > high to allow the info to come out?