From: adey <adey11@gmail.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to check objects dependency??
Date: Thu, 1 Nov 2007 10:38:57 +1300
Message-ID: <1c66bda80710311438l72daa6cam480ee63b52f98cb7@mail.gmail.com> (raw)
In-Reply-To: <dcc563d10710310904q3273b89ep49d572e6087e0211@mail.gmail.com>
References: <906847.93368.qm@web56412.mail.re3.yahoo.com>
<dcc563d10710310904q3273b89ep49d572e6087e0211@mail.gmail.com>
Doesn't ownership also apply to views and stored procs...
On 11/1/07, Scott Marlowe <scott.marlowe@gmail.com> wrote:
>
> 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?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
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: adey11@gmail.com, scott.marlowe@gmail.com, rjessil@yahoo.com
Subject: Re: how to check objects dependency??
In-Reply-To: <1c66bda80710311438l72daa6cam480ee63b52f98cb7@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