From: marc@msys.ch
To: pgsql-bugs@postgresql.org
Subject: BUG #6350: Delete a role which is still in use
Date: Wed, 21 Dec 2011 16:32:25 +0000
Message-ID: <E1RdP5d-0008TM-4r@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6350
Logged by: Marc Balmer
Email address: marc@msys.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: marc@msys.ch
Subject: Re: BUG #6350: Delete a role which is still in use
In-Reply-To: <E1RdP5d-0008TM-4r@wrigleys.postgresql.org>
References: <E1RdP5d-0008TM-4r@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox