From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Oleg Lebedev <olebedev(at)waterford(dot)org> |
Cc: | Postgres SQL Mailing List <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: table permissions |
Date: | 2001-11-01 22:35:07 |
Message-ID: | 27365.1004654107@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Oleg Lebedev <olebedev(at)waterford(dot)org> writes:
> I have a superuser root and a regular user oleg. I am trying to insert a
> new row in table Set, which references table Activity, being logged in
> as root. I get an error saying:
> activity: Permission denied.
> This is very weird because root has all the permissions on every table
> in the database. Even more strange is that as soon as I grant DELETE
> privilege to user oleg, the problem disappears and I can add a row to
> the Set table.
Evidently the update is being done under privileges of user oleg.
Are you using a view, rule, function, trigger, etc somewhere in there?
I doubt this would happen with a straightforward INSERT typed at the
command line, but if the insert command is in a rule or function owned
by oleg, the game is different ...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Lebedev | 2001-11-01 23:13:23 | Re: table permissions |
Previous Message | Oleg Lebedev | 2001-11-01 21:04:12 | table permissions |