From: | Durumdara <durumdara(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Cannot delete role because it depends on "default privileges" |
Date: | 2016-10-21 13:52:06 |
Message-ID: | CAEcMXhkQ0MORUYdTuT7CBMONrWjdhKAEcYy15pTmbzk+KKbWWQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dear Tom!
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.
As I read it have "CASCADE" mode, but I'm afraid to start it, because I
don't know what will happen.
It is a really used server, so if I do something wrong, I will killed by my
boss... :-(
To complicate the things my coll. renamed this role to "role_x_to_delete",
and created a new role_x, and a new db_x database.
So if the PG uses "names" and not identifiers in the background, I will
be in trouble...
Thanks
2016-10-21 15:27 GMT+02:00 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Durumdara <durumdara(at)gmail(dot)com> writes:
> > We have a ROLE_MAIN.
> > This gave default privileges to all next objects in DB_X to ROLE_X.
> > Somebody dropped DB_X, and later he tried to drop ROLE_X.
> > But he got errors in PGAdmin.
> > ERROR: role "role_x" cannot be dropped because some objects depend on it
> > DETAIL: privileges for default privileges on new types belonging to role
> > role_main
>
> See DROP OWNED BY.
>
> https://www.postgresql.org/docs/9.6/static/role-removal.html
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-10-21 14:08:31 | Re: Cannot delete role because it depends on "default privileges" |
Previous Message | Tom Lane | 2016-10-21 13:27:13 | Re: Cannot delete role because it depends on "default privileges" |