Re: Unable to drop the user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik,
That did work.
Appreciated!

Thank you,
Sarwar


From: Erik Wienhold <ewie@xxxxxxxxx>
Sent: Sunday, September 17, 2023 12:21 PM
To: M Sarwar <sarwarmd02@xxxxxxxxxxx>; pgsql-admin@xxxxxxxxxxxxxxxxxxxx <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: Unable to drop the user
 
On 17/09/2023 17:26 CEST M Sarwar <sarwarmd02@xxxxxxxxxxx> wrote:

> I am trying to drop a user.
>
> drop USER Dev_BaoP ;
>
> I am getting the below error message.
>
> ERROR: role "dev_baop" cannot be dropped because some objects depend on it
> DETAIL: privileges for schema public
> privileges for schema Bronx

You need to revoke those privileges before dropping the role [1].  Use psql
command \dn+ to show them.  Or just use the combo of REASSIGN OWNED BY and
DROP OWNED BY.

See also this recent thread [2].

[1] https://na01.safelinks.protection.outlook.com/?url="">
[2]
https://na01.safelinks.protection.outlook.com/?url="">

--
Erik

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux