Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 449A51337BD8 for ; Wed, 30 Mar 2011 06:44:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 71515-04 for ; Wed, 30 Mar 2011 09:44:07 +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 9EF271337BA8 for ; Wed, 30 Mar 2011 06:44:06 -0300 (ADT) Received: (qmail 22171 invoked by uid 399); 30 Mar 2011 09:44:05 -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 09:44:05 -0000 X-Originating-IP: 86.43.79.16 Message-ID: <4D92FB63.2030705@iol.ie> Date: Wed, 30 Mar 2011 10:44:03 +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: "jsilberberg@mindspring.com" , "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> In-Reply-To: <93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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/33 X-Sequence-Number: 10624 On 29/03/2011 21:21, Marc Fromm wrote: > By editing postgresql.conf and changing listen_address = ‘*’ and editing > pg_hba.conf and adding host all all my.ip.address allowed me to connect > to the postgresql data base with Microsoft access. > > In access I can see the table and it fields, but if I try to use the > table in a querry or view the table I get an error: permission denied > for relation summer_finaid; error while executing the query (#7) You need to grant permission on the table to the user: GRANT SELECT ON summer_finaid TO [insert your user here]; See the docs here: http://www.postgresql.org/docs/9.0/static/sql-grant.html > Also in the postgresql instead of listen_address=’*’ I tried > listen_address=’localhost, my.ip.address’ but that failed to work. > > How can I keep local host and only allow specific address? I don’t want > to open it up to all with ‘*’ listen_addresses specifies the interfaces on which Postgres *listens*, not the remote hosts which can connect - that's done in pg_hba.conf. Ray. -- Raymond O'Donnell :: Galway :: Ireland rod@iol.ie