简而言之:由于PostgreSQL中的架构名称,用于备份的gitlab rake任务失败。
2018-07-26_02:00:40.39177 ERROR: permission denied for schema gitlabhq_production 2018-07-26_02:00:40.39183 STATEMENT: LOCK TABLE gitlabhq_production.abuse_reports IN ACCESS SHARE MODE
我们正在通过omnibus运行gitlab-ce-11.0.1。我们从mysql手动将db导入到postgresql。
通常,\dn+
应该:
gitlabhq_production=# gitlabhq_production=# \dn+ List of schemas Name | Owner | Access privileges | Description ---------------------+-------------+--------------------------------+------------------------ | public | gitlab-psql | "gitlab-psql"=UC/"gitlab-psql"+| standard public schema | | =UC/"gitlab-psql" | (2 rows)
但是我们的\dn+
看起来像:
gitlabhq_production=# gitlabhq_production=# \dn+ List of schemas Name | Owner | Access privileges | Description ---------------------+-------------+--------------------------------+------------------------ gitlabhq_production | gitlab-psql | | public | gitlab-psql | "gitlab-psql"=UC/"gitlab-psql"+| standard public schema | | =UC/"gitlab-psql" | (2 rows)
我们如何删除第一行“ gitlabhq_production | gitlab-psql |”可以安全删除吗?