From: Raymond O'Donnell <rod@iol.ie>
To: Marc Fromm <Marc.Fromm@wwu.edu>
Cc: jsilberberg@mindspring.com <jsilberberg@mindspring.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: first time odbc
Date: Wed, 30 Mar 2011 10:44:03 +0100
Message-ID: <4D92FB63.2030705@iol.ie> (raw)
In-Reply-To: <93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu>
References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net>
<93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: rod@iol.ie, Marc.Fromm@wwu.edu, jsilberberg@mindspring.com
Subject: Re: first time odbc
In-Reply-To: <4D92FB63.2030705@iol.ie>
References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net> <93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu> <4D92FB63.2030705@iol.ie>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox