Re: need help

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ashok kumar Mani <amani(at)accelaero(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: need help
Date: 2020-04-22 14:50:55
Message-ID: CAKFQuwa6QEdsktbQ6YSmcRpD1mwyvCMpgD2vDxDOYy+o+7vqmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Apr 22, 2020 at 7:45 AM Ashok kumar Mani <amani(at)accelaero(dot)com>
wrote:

> Classification: Internal
>
> Dear All
>
>
>
> Could you please some one help on this below issue ? I could n;t able to
> find any meaning on this below?
>
>
>
> test=# drop user amosuser_test;
>
> ERROR: role "amosuser_test" cannot be dropped because some objects depend
> on it
>
> DETAIL: privileges for database test
>
> test=#
>
>
>

From the documentation...

https://www.postgresql.org/docs/12/sql-droprole.html

""""
A role cannot be removed if it is still referenced in any database of the
cluster; an error will be raised if so. Before dropping the role, you must
drop all the objects it owns (or reassign their ownership) and revoke any
privileges the role has been granted on other objects. The REASSIGN OWNED
and DROP OWNED commands can be useful for this purpose; see Section 21.4
for more discussion.
""""
David J.

In response to

  • need help at 2020-04-22 14:44:59 from Ashok kumar Mani

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ashok kumar Mani 2020-04-22 14:53:21 RE: need help
Previous Message Ashok kumar Mani 2020-04-22 14:44:59 need help