Lists: | pgsql-bugs |
---|
From: | "Niranjan Pandit" <smartnp81(at)gmail(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #5545: permission denied on delete |
Date: | 2010-07-08 12:49:01 |
Message-ID: | 201007081249.o68Cn15l014050@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 5545
Logged by: Niranjan Pandit
Email address: smartnp81(at)gmail(dot)com
PostgreSQL version: 8.4
Operating system: Fedora 13
Description: permission denied on delete
Details:
role A is member of role B, role B has delete privilege also the select
privilege on the id field of the table. when logged in with role A and set
role to B, the permission is still denied to delete a record, any ideas why
is permission denied ?
the set role is in a security invoker function before the delete statement.
Could this be related in anyway ?
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Niranjan Pandit <smartnp81(at)gmail(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #5545: permission denied on delete |
Date: | 2010-07-08 13:33:22 |
Message-ID: | AANLkTileJ3ybgapCd-3sU84QjG5Z1QGYyUekeY6DrOA3@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
On Thu, Jul 8, 2010 at 8:49 AM, Niranjan Pandit <smartnp81(at)gmail(dot)com> wrote:
> role A is member of role B, role B has delete privilege also the select
> privilege on the id field of the table. when logged in with role A and set
> role to B, the permission is still denied to delete a record, any ideas why
> is permission denied ?
>
> the set role is in a security invoker function before the delete statement.
> Could this be related in anyway ?
I tried it here and it worked for me. Can you provide a
self-contained test case?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company