From: | yazicivo(at)ttmail(dot)com (Volkan =?utf-8?B?WWF6xLFjxLE=?=) |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Permission Problem for DELETE |
Date: | 2008-05-27 17:23:35 |
Message-ID: | 87d4n7hd9k.fsf@alamut.mobiliz.com.tr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I rarely use GRANT -- nearly once every 1-2 year -- and everytime I
forget this small detail: DELETE/INSERT/UPDATE privileges require SELECT
privilege also.
On Tue, 27 May 2008, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> You don't have SELECT privilege, which is required to read any of the
> columns in the WHERE clause.
As far as I tested, even
DELETE FROM foo;
UPDATE foo SET bar = NULL;
commands _require_ SELECT permissions.
> (Not sure if this is explained anywhere in our manual :-(, but the
> behavior is required by SQL spec.)
Would attached patch be a first step for that purpose?
Regards.
Attachment | Content-Type | Size |
---|---|---|
grant-awd-requires-r.patch | text/x-diff | 941 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2008-05-27 17:38:14 | Re: array of composite types to refcusor |
Previous Message | Alban Hertroys | 2008-05-27 17:21:11 | Re: active queries |