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 CB2709FA5D2 for ; Thu, 15 Jun 2006 23:50:01 -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-10 for ; Thu, 15 Jun 2006 23:49:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from weatherbeeta.com.au (mail.weatherbeeta.com.au [202.154.127.242]) by postgresql.org (Postfix) with SMTP id 753219FA160 for ; Thu, 15 Jun 2006 23:49:43 -0300 (ADT) Received: (qmail 3958 invoked from network); 16 Jun 2006 02:49:38 -0000 X-NetworkBox-HamSign: 0101;OUT;wbeetaau1;0007b0c7bef97bdb171d237e240b1b39; Received: from mail.weatherbeeta.com.au (HELO wb-email) (172.20.0.2)by network-box.weatherbeeta.com.au with SMTP; 16 Jun 2006 02:49:38 -0000 Received: from IT-PHIL ([172.20.0.155]) by wb-email (602Pro LAN SUITE 2003) id 2d534026 for pgsql-sql@postgresql.org; Fri, 16 Jun 2006 12:47:42 +1000 Reply-To: From: "Phillip Smith" To: Subject: Re: listen_addresses = '*' ok, specific address(es) no (.... and a thread hi-jack!) Date: Fri, 16 Jun 2006 12:49:16 +1000 Organization: Weatherbeeta P/L Message-ID: <005301c690ef$75a5ee30$9b0014ac@ITPhil> MIME-Version: 1.0 Content-Type: text/plain;charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org> X-Scanned-By-wbeetaau1: Virus scan performed by network-box X-Scanned-By-wbeetaau1: Scanner file id is wbeetaau1-1150426178.653-3953-000 X-Scanned-By-wbeetaau1: No known viruses found in message (received+scanned in 0.02/0.07 secs) X-Scanned-By-wbeetaau1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/195 X-Sequence-Number: 25431 Hi Geoff, Listen_addresses means what local interface to listen to connections - = ie, if you have 2 network interfaces (cards) in the machine that go to 2 different networks - such as one to the internet and one to your LAN, = you could tell Postgres to only listen on the LAN interface for connections = so it won't accept connections from anything on the internet. What you're = after would be better done by a firewall (ipchains / iptables) I've just installed Postgres 8.1 on RedHat 7.1 and I'm getting the = error: "2006-06-16 14:49:00 NZST @ []LOG: could not create IPv6 socket: = Address family not supported by protocol" RedHat 7.1 does not support IPv6, but I don't need it - how can I = disable it? I've set my listen_addresses to: listen_addresses =3D '172.23.0.1' Yes, I do have a local address 172.23.0.1 as per output from ifconfig: [postgres@wbnz pgsql]$ ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:20:ED:38:EB:F4 inet addr:172.23.0.1 Bcast:172.23.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2548578 errors:0 dropped:0 overruns:0 frame:0 TX packets:2479774 errors:0 dropped:0 overruns:1 carrier:0 collisions:0 txqueuelen:100 Interrupt:18 Base address:0xe000 Memory:e0998000-e0998c40 Cheers, -p -----Original Message----- From: pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of Geoffrey Knauth Sent: Friday, 16 June 2006 12:06 PM To: pgsql-sql@postgresql.org Subject: Re: [SQL] listen_addresses =3D '*' ok, specific address(es) no=20 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, =20 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 =20 a 192.168.1.x/24 address and 1.33 is on the same subnet. Or maybe =20 I'm misunderstanding. I thought the purpose of listen_addresses was =20 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 =3D '*' > >> but the following does not: >> listen_addresses =3D '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 =20 > paths in > that code emit LOG messages. Perhaps you have log_min_messages set =20 > too > high to allow the info to come out? ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email. Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments