From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to check objects dependency??
Date: Wed, 31 Oct 2007 15:58:19 -0400
Message-ID: <18966.1193860699@sss.pgh.pa.us> (raw)
In-Reply-To: <906847.93368.qm@web56412.mail.re3.yahoo.com>
References: <906847.93368.qm@web56412.mail.re3.yahoo.com>
Jessica Richard <rjessil@yahoo.com> writes:
> 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?
Try to do the DROP ROLE within those databases. You'll get more detail
about owned objects within the current database, but from outside that
database the info isn't reachable ...
regards, tom lane
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: tgl@sss.pgh.pa.us, rjessil@yahoo.com
Subject: Re: how to check objects dependency??
In-Reply-To: <18966.1193860699@sss.pgh.pa.us>
* 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