| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Jessica Richard <rjessil(at)yahoo(dot)com> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: how to check objects dependency?? |
| Date: | 2007-10-31 19:19:35 |
| Message-ID: | 20071031191935.GB3984@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
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)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-10-31 19:58:19 | Re: how to check objects dependency?? |
| Previous Message | Dinesh | 2007-10-31 18:42:23 | Slony with Linux Heartbeat |