Fixed an issue where the dependencies tab showing multiple owners for the objects having shared dependencies. Fixes #6087

This commit is contained in:
Akshay Joshi
2021-01-29 12:10:21 +05:30
parent 48e257e5af
commit 358af42c50
5 changed files with 17 additions and 4 deletions

View File

@@ -1,4 +1,8 @@
SELECT rolname AS refname, refclassid, deptype
FROM pg_shdepend dep
LEFT JOIN pg_roles r ON refclassid=1260 AND refobjid=r.oid
{{where_clause}} ORDER BY 1
{{where_clause}}
{% if db_name %}
AND dep.dbid = (SELECT oid FROM pg_database WHERE datname = '{{db_name}}')
{% endif %}
ORDER BY 1

View File

@@ -1,4 +1,8 @@
SELECT rolname AS refname, refclassid, deptype
FROM pg_shdepend dep
LEFT JOIN pg_roles r ON refclassid=1260 AND refobjid=r.oid
{{where_clause}} ORDER BY 1
{{where_clause}}
{% if db_name %}
AND dep.dbid = (SELECT oid FROM pg_database WHERE datname = '{{db_name}}')
{% endif %}
ORDER BY 1

View File

@@ -1,4 +1,8 @@
SELECT rolname AS refname, refclassid, deptype
FROM pg_shdepend dep
LEFT JOIN pg_roles r ON refclassid=1260 AND refobjid=r.oid
{{where_clause}} ORDER BY 1
{{where_clause}}
{% if db_name %}
AND dep.dbid = (SELECT oid FROM pg_database WHERE datname = '{{db_name}}')
{% endif %}
ORDER BY 1