Re: Can't delete role because of unknown object

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Craig Libscomb <craiglibscomb1972(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Can't delete role because of unknown object
Date: 2014-04-22 20:06:24
Message-ID: 5356CBC0.2000408@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 22/04/2014 20:47, Craig Libscomb wrote:
> The following command:
> DROP USER IF EXISTS jpate;
>
> generates the following output:
> ERROR: role "jpate" cannot be dropped because some objects depend on it
> DETAIL: 1 object in database products
>
> It would be most helpful to know what object in the products database
> depends on the jpate role, but I am unable to find anything that even
> begins to offer a clue. What command will show me this mysterious
> object, please?

I'd hazard a guess that there is another role which is a member of this
one.... connect to the database using psql, and then \du will give you a
list of all roles - in the output from \du, look at the column "Member of".

HTH,

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Libscomb 2014-04-22 20:19:51 Re: Can't delete role because of unknown object
Previous Message droletguillaume 2014-04-22 20:02:29 Re: Can't delete role because of unknown object