From: Dave Page <dpage@vale-housing.co.uk>
To: Chris Hoover <revoohc@sermonaudio.com>
To: Jeff Eckermann <jeff_eckermann@yahoo.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Help with ODBC problem
Date: Sat, 5 Jun 2004 17:35:23 +0100
Message-ID: <71FEDEE1-A40E-4A1B-BC9E-816B4381BC7D@mimectl> (raw)
In-Reply-To: <40C0DE02.2020805@sermonaudio.com>
References: <20040604200515.17790.qmail@web20804.mail.yahoo.com>
<40C0DE02.2020805@sermonaudio.com>
From: Chris Hoover
Sent: Fri 6/4/2004 9:39 PM
To: Jeff Eckermann
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Help with ODBC problem
Ok, I created a new schema and put my view into it giving my reporting
group access to this view only. I also set the search_path in the odbc
driver and as an alter user, but I am still seeing a full db catalog
when I connect to my db via odbc. (link trying to link a table in Access).
Any further ideas? I really need the end users to only see the specific
views/tables I grant them access to when they are an area where they are
able to choose tables/views to view.
I think you'll be out of luck. iirc, when an app asks the ODBC driver what tables exist it just queries pg_class without regard to visibility rules imposed by the schema search path. Technically this is correct, because even without a schema being in the path, a user can still reference it using scheme.table notation.
I suspect your best option would be to hack PGAPI_Tables() in info.c if you absolutely must stop users seeing tables, though the best be would probably be to simply leave the driver as it is, let the users see the tables, but deny them any direct access to them.
Regards, Dave
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: dpage@vale-housing.co.uk, revoohc@sermonaudio.com, jeff_eckermann@yahoo.com
Subject: Re: Help with ODBC problem
In-Reply-To: <71FEDEE1-A40E-4A1B-BC9E-816B4381BC7D@mimectl>
References: <20040604200515.17790.qmail@web20804.mail.yahoo.com> <40C0DE02.2020805@sermonaudio.com> <71FEDEE1-A40E-4A1B-BC9E-816B4381BC7D@mimectl>
* 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