pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeddropping a user in 8.2.6
2+ messages / 2 participants
[nested] [flat]
* dropping a user in 8.2.6
@ 2008-07-08 16:44 Rex Mabry <rexmabry@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Rex Mabry @ 2008-07-08 16:44 UTC (permalink / raw)
To: pgsql-admin
I am using version 8.2.6
I created a role and granted all on table "instrument" in the database. But, when I tried to drop the role, I get the following error:
mydb=# drop role system_dba;
ERROR: role "user1" cannot be dropped because some objects depend on it
DETAIL: access to table mydb_admin.instrument
Is there a way to drop a role with some sort of "cascade" option?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: dropping a user in 8.2.6
@ 2008-07-08 17:16 Igor Neyman <ineyman@perceptron.com>
parent: Rex Mabry <rexmabry@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Igor Neyman @ 2008-07-08 17:16 UTC (permalink / raw)
To: rexmabry@yahoo.com; pgsql-admin
First do:
DROP OWNED BY user1;
then:
drop role user1;
Igor
________________________________
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Rex Mabry
Sent: Tuesday, July 08, 2008 12:45 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] dropping a user in 8.2.6
I am using version 8.2.6
I created a role and granted all on table "instrument" in the database.
But, when I tried to drop the role, I get the following error:
mydb=# drop role system_dba;
ERROR: role "user1" cannot be dropped because some objects depend on it
DETAIL: access to table mydb_admin.instrument
Is there a way to drop a role with some sort of "cascade" option?
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-07-08 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-07-08 16:44 dropping a user in 8.2.6 Rex Mabry <rexmabry@yahoo.com>
2008-07-08 17:16 ` Igor Neyman <ineyman@perceptron.com>
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