Re: Cannot delete role because it depends on "default privileges"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Durumdara <durumdara(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot delete role because it depends on "default privileges"
Date: 2016-10-21 14:08:31
Message-ID: 23791.1477058911@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Durumdara <durumdara(at)gmail(dot)com> writes:
> The DB_X dropped, so I can't choose it as "actual database".
> I tried this in a neutral database:
> drop owned by role_x;
> But nothing happened, the error is same.

The error you are reporting is describing default privileges that
exist in the *current* database. You need to do DROP OWNED BY
in that database (and maybe other ones, but start there).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Арсений Нестюк 2016-10-21 14:11:26 Re: Showing matrix with single query
Previous Message Durumdara 2016-10-21 13:52:06 Re: Cannot delete role because it depends on "default privileges"