Re: How to drop user if objects depend on it
| От | Andrus |
|---|---|
| Тема | Re: How to drop user if objects depend on it |
| Дата | |
| Msg-id | 1A68A966BDE142FEABFE8BDE2D86261D@dell2 обсуждение исходный текст |
| Ответ на | Re: How to drop user if objects depend on it (Thom Brown <thom@linux.com>) |
| Ответы |
Re: How to drop user if objects depend on it
|
| Список | pgsql-general |
Hi! >The objects can't be owned by nothing, so you will need to reassign >ownership: >REASSIGN OWNED BY old_role TO new_role; >e.g. >REASSIGN OWNED BY vantaa TO postgres; >Then you can drop the role. User who deletes other users is not superuser. It is created using CREATE ROLE admin LOGIN NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION CONNECTION LIMIT 100; GRANT idd_owner TO admin; I tried REASSIGN OWNED BY vantaa TO postgres; and REASSIGN OWNED BY vantaa TO idd_owner; but got error permission denied to reassign objects . How to fix ? I can add some rights to user who invokes this command if this helps. Andrus.
В списке pgsql-general по дате отправления: