Re: System catalog table privileges

From: Hilary Forbes <hforbes(at)dmr(dot)co(dot)uk>
To: "Aaron Bono" <postgresql(at)aranya(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: System catalog table privileges
Date: 2006-07-21 16:19:45
Message-ID: 5.1.0.14.0.20060721171518.035c4008@mailserver.dmr.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

<html>
Aaron<br><br>
Thanks for this one - I had actually wondered about doing that but the
trouble is that they say that they need up to the minute reports not
&quot;as of last night&quot;.&nbsp; Indeed, I do have another app where I
do just that because I find that reports indexes/requirements are very
different to transactional type requirements.&nbsp; However, you have
made me make up my mind to see if I can persuade them to work on data
that is a day old.<br><br>
What we really need is a good graphical (Windows based) query/report tool
that allows us to configure the tables to be viewed etc etc and, most
importantly, is license free.&nbsp; There's fame for someone
there....&nbsp; <br><br>
Hilary<br><br>
<br><br>
<br>
At 10:07 21/07/2006 -0500, Aaron Bono wrote:<br><br>
<blockquote type=cite class=cite cite>On 7/21/06, <b>Hilary Forbes</b>
&lt;<a href="mailto:hforbes(at)dmr(dot)co(dot)uk">hforbes(at)dmr(dot)co(dot)uk</a>&gt; wrote:<br>
<blockquote type=cite class=cite cite>Dear All<br><br>
Next question on privileges!&nbsp; Can I safely remove all privileges from the system catalog tables for a user and still enable them to select from the public schema?&nbsp; I guess the real question is what access rights does an ordinary user have to have to the system catalog tables in order for postgres to work properly given I only ever want the user to be able to SELECT from views.<br><br>
This is all brought about by a user who wants to use MS Access Query for adhoc queries to a (small) database via ODBC.&nbsp; (the database itself drives a major web application.) I can't find an easy way of preventing them seeing that tables exist but I don't want them trying to manually update any tables of mine or postgres's thank you very much!&nbsp; (Don't shoot the messenger - there's no accounting for user's tastes!)</blockquote><br>
&nbsp;<br>
This doesn't address the permissions issue but is a suggestion regarding your approach on granting access to an untrusted user for reporting purposes... <br><br>
Whenever I have a user that needs to do reporting from any production database, I set up a separate reporting database.&nbsp; If possible, this is placed on a completely different machine and the data is fed from production to the reporting server nightly.&nbsp; Tech savy business users (the ones who typically need this kind of access) are notorious for writing bad queries and causing performance problems.&nbsp; If you isolate their activity, you will eliminate lots of headache.&nbsp; If they cause a problem on the reporting server, you don't have to drop everything to get the problem fixed like you would if they caused problems on the live database. <br><br>
An argument that the users who run the reports often make is that they need the most current data.&nbsp; Most of the time this is not the case.&nbsp; My recommendation is to let the users create the queries they need to run for realtime data on the reporting database, then pass them by an expert for review before putting them into an IT controlled reporting application. <br><br>
Bottom line, be careful about giving non-experts too much access to your live production data.<br><br>
==================================================================<br>
&nbsp;&nbsp; Aaron Bono<br>
&nbsp;&nbsp; Aranya Software Technologies, Inc. <br>
&nbsp;&nbsp; <a href="http://www.aranya.com">http://www.aranya.com</a><br>
================================================================== </blockquote>
<x-sigsep><p></x-sigsep>
Hilary Forbes<br>
DMR Limited (UK registration 01134804) <br>
A DMR Information and Technology Group company (<a href="http://www.dmr.co.uk/" eudora="autourl"><font color="#0000FF"><u>www.dmr.co.uk</a></u></font>) <br>
Direct tel 01689 889950 Fax 01689 860330 <br>
DMR is a UK registered trade mark of DMR Limited<br>
**********************************************************</html>

Attachment Content-Type Size
unknown_filename text/html 3.8 KB

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Marlowe 2006-07-21 16:27:04 Re: System catalog table privileges
Previous Message Stephan Szabo 2006-07-21 16:01:44 Re: Error when trying to use a FOR loop