From: Marc Balmer <marc@msys.ch>
To: pgsql-bugs@postgresql.org
Subject: script for #6350
Date: Wed, 21 Dec 2011 18:09:14 +0100
Message-ID: <4EF212BA.1010104@msys.ch> (raw)
Attached script (run as psql -U postgres -f bug_6350.sql) shows the
problem. Enjoy!
Attachments:bug_6350.sql (text/plain, 706B) download
create database problematic;
\c problematic
-- create three roles
create role usr;
create role adm;
create role new_adm;
create table foo (bar integer);
alter table foo owner to adm;
grant select(bar) on foo to usr;
-- all ok so far, usr and adm are referenced in
-- the foo.bar column privileges
\dp foo
-- now change the owner
alter table foo owner to new_adm;
-- the following drop succeds, although role adm
-- is still referenced in the foo.bar column
-- privileges. this is a bug.
drop role adm;
\dp foo
-- the column privileges can now not be changed
-- due to the stale reference to the deleted role.
revoke select(bar) on foo from usr;
\dp foo
\c template1
drop database problematic;
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: script for #6350
In-Reply-To: <4EF212BA.1010104@msys.ch>
References: <4EF212BA.1010104@msys.ch>
* 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