Re: how to check objects dependency?? - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: how to check objects dependency??
Date
Msg-id dcc563d10710310904q3273b89ep49d572e6087e0211@mail.gmail.com
Whole thread Raw
In response to how to check objects dependency??  (Jessica Richard <rjessil@yahoo.com>)
Responses Re: how to check objects dependency??  (adey <adey11@gmail.com>)
List pgsql-admin
On 10/31/07, Jessica Richard <rjessil@yahoo.com> wrote:
> I am trying to drop a user but it complained with the following message:
>
> ERROR:  role "joe" cannot be dropped because some objects depend on it
> DETAIL:  1 objects in database Jan_test
> 1 objects in database Jan
>
> this user does not own any tables in those two databases. Is there any
> command I can use to check all the dependencies on this user?

What version of pgsql are you running?  In 8.2 I get a more useful
error message for a table that is owned by a user, i.e.:

ERROR: role ... cannot be dropped ...
DETAIL: owner of table <tablename>

Have you looked in the logs to see if something like that shows up in them?

pgsql-admin by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Postgresql Database Corrupted
Next
From: "Kevin Grittner"
Date:
Subject: Re: initdb: could not create directory "C:/Program Files" (was: Installing PostgreSQL as Admin)