diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/types/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/types/__init__.py index 431ecfcde..e3e29cf6a 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/types/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/types/__init__.py @@ -1527,8 +1527,11 @@ class TypeView(PGChildNodeView, DataTypeReader, SchemaDiffObjectCompare): scid: Schema ID tid: Type ID """ + # For composite type typrelid is required to fetch dependencies. + type_where = "WHERE (dep.objid={0}::oid OR dep.objid=(select typrelid \ + from pg_type where oid = {0}::oid))".format(tid) dependencies_result = self.get_dependencies( - self.conn, tid + self.conn, tid, where=type_where ) return ajax_response( diff --git a/web/pgadmin/browser/utils.py b/web/pgadmin/browser/utils.py index cb7c5675f..68bdcdc0d 100644 --- a/web/pgadmin/browser/utils.py +++ b/web/pgadmin/browser/utils.py @@ -580,6 +580,7 @@ class PGChildNodeView(NodeView): 'Pf': 'function', 'Pt': 'trigger_function', 'Pp': 'procedure', 'Rl': 'rule', 'Rs': 'row_security_policy', 'Sy': 'synonym', 'Ty': 'type', 'Tr': 'trigger', 'Tc': 'compound_trigger', + 'c': 'type', # None specified special handling for this type 'A': None }