Как удалить пользователя в postgres
?
Устанавливаю соединение с postgres:
sudo -u postgres psql
Удаляю юзера, но не получается:
postgres=# drop user test_user;
ERROR: role "test_user" cannot be dropped because some objects depend on it
DETAIL: privileges for database postgres
Выдаю список всех таблиц:
postgres=# \dt
List of relations
Schema | Name | Type | Owner
--------+-----------------+-------+----------
public | groupped_points | table | postgres
public | point1 | table | postgres
public | points | table | postgres
public | polygon1 | table | postgres
public | polygons | table | postgres
public | spatial_ref_sys | table | postgres
public | temp_points | table | postgres
public | test | table | postgres
(8 rows)
Как видим, ни одна таблица не связана с test_user. Выдаю список юзеров:
postgres=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
test_user |
В чём может быть проблема? С чем может быть ещё связан test_user?