Re: I can not drop a user/role because an object depent on it.

From: Adrian Klaver <aklaver(at)comcast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: Ricky Tompu Breaky <ricky(dot)breaky(at)uni(dot)de>
Subject: Re: I can not drop a user/role because an object depent on it.
Date: 2009-09-30 18:38:19
Message-ID: 200909301138.19829.aklaver@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 30 September 2009 10:43:35 am Ricky Tompu Breaky wrote:
> Dear my friends....
>
> I can not drop a user because another object need it. How can I know
> which object need it? I really want to drop everything inside my
> PostgreSQL, to reset my installation really from beginning.
>
> postgres=# drop user ivia;
> FEHLER: kann Rolle »ivia« nicht löschen, weil andere Objekte davon
> abhängen DETAIL: Eigentümer von Datenbank iVia
> 7 Objekte in Datenbank iVia-->mytranslation: Error: can not delete Role
> »ivia«, because another object depend on it DETAIL: owner of Database
> iVia.
> postgres=#
>
> I've dropped the database iVia.
>
> Thank you very much in advance.

To clarify did you try to DROP USER ivia before or after you dropped the
database iVia ?

--
Adrian Klaver
aklaver(at)comcast(dot)net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-09-30 22:29:26 Re: Weird behavior with "sensitive" cursors.
Previous Message Ricky Tompu Breaky 2009-09-30 18:29:27 Re: I can not drop a user/role because an object depent on it.