Skip site navigation (1) Skip section navigation (2)

DROP ROLE dependency tracking ...

From: Hans-Juergen Schoenig <postgres(at)cybertec(dot)at>
To: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: DROP ROLE dependency tracking ...
Date: 2008-05-25 06:19:40
Message-ID: 483904FC.5030906@cybertec.at (view raw or flat)
Thread:
Lists: pgsql-hackers
good morning,

some days ago i have fallen over an issue which feels more or less like 
a bug. consider:


test=# create role xy LOGIN;
CREATE ROLE

test=# grant connect on database test to xy;
GRANT

test=# drop role xy;
ERROR:  role "xy" cannot be dropped because some objects depend on it
DETAIL:  access to database test

this is a totally fresh instance --- all i did was creating a db called 
"test".
failing would make sense if i would the owner of an object but i fact i 
don't own anything.

test=# SELECT version();
                                                 
version                                                 
----------------------------------------------------------------------------------------------------------
 PostgreSQL 8.4devel on x86_64-unknown-linux-gnu, compiled by GCC gcc 
(GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
(1 row)

is this a known issue?

    many thanks,

       hans


-- 
Cybertec Schönig & Schönig GmbH
PostgreSQL Solutions and Support
Gröhrmühlgasse 26, A-2700 Wiener Neustadt
Tel: +43/1/205 10 35 / 340
www.postgresql-support.de, www.postgresql-support.com


Responses

pgsql-hackers by date

Next:From: Stephen R. van den BergDate: 2008-05-25 08:21:33
Subject: Re: [PERFORM] Posible planner improvement?
Previous:From: Gurjeet SinghDate: 2008-05-25 04:57:09
Subject: Does 'ALTER INDEX' take exclusive lock?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group