From: Scott Marlowe <scott.marlowe@gmail.com>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to check objects dependency??
Date: Wed, 31 Oct 2007 11:04:45 -0500
Message-ID: <dcc563d10710310904q3273b89ep49d572e6087e0211@mail.gmail.com> (raw)
In-Reply-To: <906847.93368.qm@web56412.mail.re3.yahoo.com>
References: <906847.93368.qm@web56412.mail.re3.yahoo.com>
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?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, rjessil@yahoo.com
Subject: Re: how to check objects dependency??
In-Reply-To: <dcc563d10710310904q3273b89ep49d572e6087e0211@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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