pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Powell <brian@owlscreech.com>
To: pgsql-sql@postgresql.org
Subject: Permissions Broken in 7.0.x?
Date: Tue, 21 Nov 2000 13:17:17 -0700
Message-ID: <B640265D.1448%brian@owlscreech.com> (raw)

Greetings, I am having problem with table permissions and view permissions.

Say I am user bob and I own a database, bobdb.  Let us also assume a user,
tester has been added to the db, via create user...

% psql bobdb
psql => create table test (
    name       char(32) not null,
    age        int4
  );
psql => revoke all on test from tester;
CHANGE
psql => select * from test;
ERROR:  test: Permission denied.

Why would this be so?  I only revoked the user tester. So, I add myself:

Additionally, if I have a trigger on a table which sets the updated_date and
updated_by on any update, and I have a view with a rule which passes any
update to the table (thus calling the trigger), I get a permission denied.
I am supposing that the user updating the view does not have privileges to
the trigger?  How would I grant them privileges to the trigger?

Thank you for your assistance.

--Brian




view thread (3+ messages)  latest in thread

Message-ID: <B640265D.1448%brian@owlscreech.com>
Permalink:  ../B640265D.1448%25brian@owlscreech.com/
Also on:    postgresql.org/message-id/B640265D.1448%brian@owlscreech.com

 · 

reply

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-sql@postgresql.org
  Cc: brian@owlscreech.com
  Subject: Re: Permissions Broken in 7.0.x?
  In-Reply-To: <B640265D.1448%brian@owlscreech.com>
  References: <B640265D.1448%brian@owlscreech.com>

* 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