Re: Permission Problem for DELETE - Mailing list pgsql-general

From Tom Lane
Subject Re: Permission Problem for DELETE
Date
Msg-id 26837.1211896640@sss.pgh.pa.us
Whole thread Raw
In response to Permission Problem for DELETE  (Volkan YAZICI <yazicivo@ttmail.com>)
Responses Re: Permission Problem for DELETE
List pgsql-general
Volkan YAZICI <yazicivo@ttmail.com> writes:
>         Access privileges for database "test_1_5_0_0"
>    Schema  |       Name       | Type  |  Access privileges
>   ---------+------------------+-------+---------------------
>    commsrv | outgoingmessages | table | test=arwdxt/test
>                                       : emove=ad/test
>                                       : commsrv=arwdxt/test
>   (1 row)

> PostgreSQL doesn't allow me to DELETE a row from
> commsrv.outgoingmessages with emove role.

>   (emove@192.168.1.160:5432/test_1_5_0_0) [2008-05-27 09:37:11]
>>>> EXPLAIN DELETE FROM commsrv.outgoingmessages WHERE messageid = 261120;
>   ERROR:  permission denied for relation outgoingmessages

You don't have SELECT privilege, which is required to read any of the
columns in the WHERE clause.

(Not sure if this is explained anywhere in our manual :-(, but the
behavior is required by SQL spec.)

            regards, tom lane

pgsql-general by date:

Previous
From: Justin Clift
Date:
Subject: Re: New MS patent: sounds like PG db rules
Next
From: Justin
Date:
Subject: Re: New MS patent: sounds like PG db rules