Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 56B311337DA9 for ; Wed, 30 Mar 2011 13:14:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 57869-03-6 for ; Wed, 30 Mar 2011 16:14:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail1.hosting.digiweb.ie (mail1.hosting.digiweb.ie [89.234.64.49]) by mail.postgresql.org (Postfix) with SMTP id EF45B1337C51 for ; Wed, 30 Mar 2011 12:47:42 -0300 (ADT) Received: (qmail 30019 invoked by uid 399); 30 Mar 2011 15:47:40 -0000 Received: from unknown (HELO ?127.0.0.1?) (ray@teladesign.ie@86.43.79.16) by mail1.hosting.digiweb.ie with SMTP; 30 Mar 2011 15:47:40 -0000 X-Originating-IP: 86.43.79.16 Message-ID: <4D935099.9090301@iol.ie> Date: Wed, 30 Mar 2011 16:47:37 +0100 From: Raymond O'Donnell Reply-To: rod@iol.ie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Marc Fromm CC: "postgresql@finner.de" , "pgsql-odbc@postgresql.org" Subject: Re: first time odbc References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net> <93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu> <20110330061806.13f0a67f@isengard.finner.de> <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu> In-Reply-To: <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 110330-0, 30/03/2011), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/36 X-Sequence-Number: 10627 On 30/03/2011 15:54, Marc Fromm wrote: > I only want the users to read data, thus I removed superuser and > applied grant select. Good stuff. > If the listen_address is not a client filter, would it still be > better to only have it listen to localhost and the few ip addresses > that will need to odbc to the postgres database? Is it just not > possible to assign listen_address = 'localhost, 1.ip.address, > 2.ip.address'? You're still misunderstanding listen_addresses - it has *nothing* to do with client addresses. Example: I have a server with two network interfaces, a.b.c.x and a.b.c.y. If I want PG to listen on both interfaces, I can set listen_addresses = '*' (or list the two addresses explicitly). If I want it to listen *only* on a.b.c.x, then I set listen_addresses='a.b.c.x'. > One other thing still, if in the pg_hba.conf file I do not include > any ip addresses I cannot connect to the database. If I enter just > one ip address, any computer can connect to the database, even though > some machines have static ip addresses and others have dhcp address > from a completely different subnet. Do you know why this is? I > figured the pg_hba.conf file controlled access by ip address, based > on other googled articles. Can you show us your pg_hba.conf? Ray. -- Raymond O'Donnell :: Galway :: Ireland rod@iol.ie