BUG #6350: Delete a role which is still in use

From: marc(at)msys(dot)ch
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6350: Delete a role which is still in use
Date: 2011-12-21 16:32:25
Message-ID: E1RdP5d-0008TM-4r@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 6350
Logged by: Marc Balmer
Email address: marc(at)msys(dot)ch
PostgreSQL version: 9.1.1
Operating system: NetBSD
Description:

A role can be deleted although it is still referenced in a column privilege.
Here is how:

create three new roles:

user, admin, new_admin

create a table, e.g. "bar" with one column, e.g. "foo", owner of the table
is "admin".

now grant "user" select rights on the "foo" column in table "bar".

now change the owner of the table "bar" to "new_admin".

drop the role "admin". PostgreSQL won't complain.

look at the privileges of table "bar" using \dp. The ownership change from
"admin" to "new_admin" did not make it to the column privileges.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2011-12-21 16:35:03 Re: BUG #6349: Cannot install on 32 bit platform
Previous Message Shahaf 2011-12-21 16:30:31 Re: BUG #6204: Using plperl functions generate crash