From: Alvaro Herrera <alvherre@commandprompt.com>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to check objects dependency??
Date: Wed, 31 Oct 2007 16:19:35 -0300
Message-ID: <20071031191935.GB3984@alvh.no-ip.org> (raw)
In-Reply-To: <906847.93368.qm@web56412.mail.re3.yahoo.com>
References: <906847.93368.qm@web56412.mail.re3.yahoo.com>
Jessica Richard 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?
Connect to those databases and issue the command again to see the
detail. When you are connected to a different database, you don't have
access to the other database catalogs, thus we cannot give you the
object names (only the fact that they exist).
--
Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4"
"PHP is what I call the "Dumb Monkey" language. [A]ny dumb monkey can code
something in PHP. Python takes actual thought to produce something useful."
(J. Drake)
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: alvherre@commandprompt.com, rjessil@yahoo.com
Subject: Re: how to check objects dependency??
In-Reply-To: <20071031191935.GB3984@alvh.no-ip.org>
* 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