pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
script for #6350
2+ messages / 1 participants
[nested] [flat]

* script for #6350
@ 2011-12-21 17:05 Marc Balmer <marc@msys.ch>
  0 siblings, 0 replies; 2+ messages in thread

From: Marc Balmer @ 2011-12-21 17:05 UTC (permalink / raw)
  To: pgsql-bugs

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;
^ permalink raw reply [nested|flat] 2+ messages in thread

* script for #6350
@ 2011-12-21 17:09 Marc Balmer <marc@msys.ch>
  0 siblings, 0 replies; 2+ messages in thread

From: Marc Balmer @ 2011-12-21 17:09 UTC (permalink / raw)
  To: pgsql-bugs

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;
^ permalink raw reply [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-12-21 17:09 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 17:05 script for #6350 Marc Balmer <marc@msys.ch>
2011-12-21 17:09 script for #6350 Marc Balmer <marc@msys.ch>

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