Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 595431337B68 for ; Tue, 29 Mar 2011 19:34:24 -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 64176-06 for ; Tue, 29 Mar 2011 22:34:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from elasmtp-masked.atl.sa.earthlink.net (elasmtp-masked.atl.sa.earthlink.net [209.86.89.68]) by mail.postgresql.org (Postfix) with ESMTP id 67124133655C for ; Tue, 29 Mar 2011 19:34:13 -0300 (ADT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=fXRiCpxdZ9V8SIYt16ltd/cbjFep8i7rVCcX0Godz2BZSbKZC7t48HVGA7W8C5wC; h=Message-ID:Date:From:Reply-To:To:Subject:Mime-Version:Content-Transfer-Encoding:X-Mailer:Content-Type:X-ELNK-Trace:X-Originating-IP; Received: from [209.86.224.45] (helo=elwamui-polski.atl.sa.earthlink.net) by elasmtp-masked.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1Q4hUL-0002yU-5b; Tue, 29 Mar 2011 18:34:13 -0400 Received: from 74.188.56.82 by webmail.earthlink.net with HTTP; Tue, 29 Mar 2011 18:34:12 -0400 Message-ID: <16057942.1301438053137.JavaMail.root@elwamui-polski.atl.sa.earthlink.net> Date: Tue, 29 Mar 2011 18:34:12 -0400 (GMT-04:00) From: "jsilberberg@mindspring.com" Reply-To: "jsilberberg@mindspring.com" To: Marc Fromm , "pgsql-odbc@postgresql.org" Subject: Re: ODBC first time odbc Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: EarthLink Zoo Mail 1.0 Content-Type: text/html; charset=UTF-8 X-ELNK-Trace: b196177a10f7a17043d71fb08c54a25c416dc04816f3191cb653f52d9093f1100afd45518201b6d1cdcfa98ac350b77d350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 209.86.224.45 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.798 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, HTML_NONELEMENT_30_40=0.001, MIME_HTML_ONLY=0.723 X-Spam-Level: X-Archive-Number: 201103/29 X-Sequence-Number: 10620

 

Okay,

 

   You may want to start at the in= dex and read the manual.  

 

    But I think you need to "= grant select ................" to your ODBC user for your permissions issue= .

 

    http://www.postgresql.org/docs/= 9.0/static/sql-grant.html

 

    JMS..

 

 = ;


-----Original Message-----
From: Marc Fromm
Sent: Mar 29, 2011 5:13 PM
To: "pgsql-odbc@postgresql.org" =
Subject: [ODBC] ODBC first time odbc

By changing the user th= at I login with to a super user, everything works. I don=E2=80=99t get the = permission denied error.

However, I only want th= e users to read. Being set as a super user allows the odbc user to change t= he data.

 

My problem is now down = to two security points:

How do I have a user wi= th only read access (not a super user) and not be denied viewing the table = data?

 

How do I control access= with listen_address=3D=E2=80=99localhost, specific.ip.addresses=E2=80=99 a= nd not use =E2=80=98*=E2=80=99?

Setting listen_address= =3D=E2=80=99localhost, specific.ip.addresses=E2=80=99 does not work, I get = call failed errors asking if the server is accepting tcp/ip connections on = port 5432

 

Thanks

 

 

From: Marc Fromm
Sent: Tuesday, March 29, 2= 011 1:23 PM
To: 'jsilberberg@mindspring.com'
Cc: pgsql-= odbc@postgresql.org
Subject: RE: [ODBC] first time odbc

 

By editing postgresql.c= onf and changing listen_address =3D =E2=80=98*=E2=80=99 and editing pg_hba.= conf and adding host all all my.ip.address allowed me to connect to the pos= tgresql 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)

 

Any ideas?

 

Also in the postgresql = instead of listen_address=3D=E2=80=99*=E2=80=99 I tried listen_address=3D= =E2=80=99localhost, my.ip.address=E2=80=99 but that failed to work.

How can I keep local ho= st and only allow specific address? I don=E2=80=99t want to open it up to a= ll with =E2=80=98*=E2=80=99

 

Thanks

 

 

From: jsilberberg@mindspring.com [mailto:jsilberberg@m= indspring.com]
Sent: Tuesday, March 29, 2011 11:13 AM
To:<= /B> Marc Fromm; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] fir= st time odbc

 

 

Why,

 

    That's a vintage 02-Feb-2006 driver.=

 

     I use 8.04 from Dec-2009 and even that's = getting a little stale.  Why not try the 9.n drivers.

 

     Could the port(s) be blocked / restr= icted between you and the server and is PostgreSQL SSL support enabled -- <= o:p>

        http://www.post= gresql.org/docs/9.0/static/ssl-tcp.html

 

     JMS

 

    -----------------------------------

 

-----Original Mess= age-----
From: Marc Fromm
Sent: Mar 29, 2011 1:58 PM
To: "pgsql-odbc@postgres= ql.org"
Subject: [ODBC] first time odbc

<= /P>

Before learning there was= an odbc list, I sent this post to the admin list.

 <= /P>

I am running postgres on = a red hat linux server.

postgresql-python-8.1.23-= 1.el5_6.1

postgresql-test-8.1.23-1.= el5_6.1

postgresql-libs-8.1.23-1.= el5_6.1

postgresql-docs-8.1.23-1.= el5_6.1

postgresql-contrib-8.1.23= -1.el5_6.1

postgresql-8.1.23-1.el5_6= .1

postgresql-pl-8.1.23-1.el= 5_6.1

postgresql-odbc-08.01.= 0200-3.1

postgresql-jdbc-8.1.407-1= jpp.4

postgresql-server-8.1.23-= 1.el5_6.1

postgresql-tcl-8.1.23-1.e= l5_6.1

 <= /P>

User on windows computers= would like to odbc to the postgres databases.

I downloaded the windows = postgres odbc drivers from the following site and installed version =E2=80= =9Cpsqlodbc-08_01_0200=E2=80=9D on the windows computer.<= /P>

= http://ftp9.us.postgresql.org/pub/mirrors/postgresql/odbc/versions/msi/=

 <= /P>

When I configure a =E2=80= =9CFile Data Source=E2=80=9D connection in access, I cannot connect to the = postgresql database. I get the message, =E2=80=9CA connection could not be = made using the file data source parameters entered. Save non-verified file = DSN?=E2=80=9D

The parameters entered ar= e:

Database: database_name

Server: I entered the IP = address of the server

User Name: I entered post= gres

Password:

SSL Mode: prefer

Port: 5432 (which is the = port used by postgres)

 <= /P>

Do I need to configure th= e /etc/odbc.ini file? It is currently just a blank file.<= /P>

 <= /P>

Thanks for any help.=

 <= /P>

Marc

=