Search Engine: Elastic

Article ID: 129815, created on Nov 7, 2016, last review on May 8, 2018

  • Applies to:
  • Operations Automation 5.5


Drop database user Some_DB_User_Name on host XX.XX.XX.XX task fails with the following output:

PgSQL API error: ERROR: role "Some_DB_User_Name" cannot be dropped because some objects depend on it
DETAIL: XXX objects in database Some_DB_Name


Mentioned database contains schema or role which is owned by existing user. This error is returned by PostgreSQL during attempt to drop the user. This case has been submitted to the Maintenance Team as feature request with id POA-90098: Error when dropping a database user when a user owns a schema or specific custom role.


The following workaround can be used to fix the task:

  1. Remove the database manually:

    postgres=# DROP DATABASE Some_DB_Name;
  2. Restart the failed task.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 5b048d9bddf8048a00aba7e0bdadef37 2554725ed606193dd9bbce21365bed4e

Email subscription for changes to this article
Save as PDF