Re: Permission Problem for DELETE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Volkan YAZICI <yazicivo(at)ttmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Permission Problem for DELETE
Date: 2008-05-27 13:57:20
Message-ID: 26837.1211896640@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Volkan YAZICI <yazicivo(at)ttmail(dot)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(at)192(dot)168(dot)1(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin 2008-05-27 13:59:17 Re: New MS patent: sounds like PG db rules
Previous Message Merlin Moncure 2008-05-27 13:29:47 Re: Money data type - Deprecated?