pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6350: Delete a role which is still in use
2+ messages / 2 participants
[nested] [flat]
* BUG #6350: Delete a role which is still in use
@ 2011-12-21 16:32 marc@msys.ch
0 siblings, 1 reply; 2+ messages in thread
From: marc@msys.ch @ 2011-12-21 16:32 UTC (permalink / raw)
To: pgsql-bugs
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6350: Delete a role which is still in use
@ 2011-12-21 17:36 Tom Lane <tgl@sss.pgh.pa.us>
parent: marc@msys.ch
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2011-12-21 17:36 UTC (permalink / raw)
To: marc@msys.ch; +Cc: pgsql-bugs
marc@msys.ch writes:
> A role can be deleted although it is still referenced in a column privilege.
Hmm, it looks like ALTER TABLE OWNER forgets to update the grantors in
column privileges. Table privileges are processed properly, but not
columns.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-12-21 17:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-21 16:32 BUG #6350: Delete a role which is still in use marc@msys.ch
2011-12-21 17:36 ` Tom Lane <tgl@sss.pgh.pa.us>
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