Some Postgres relationships don't show on table focussed ER diagrams
See original GitHub issueVersion 4.0.x (first noticed in the last 3.8.x release) For Postgres connections only the main schema ERD shows all relationships. When selecting a table, the ERD only shows relationships owned by the table (for MySQL the views work as expected showing both types):
Some Postgres examples:
For the main database ERD view, the files_file
table has many outgoing relationships:
when viewed from files_file
table focus, no connections are shown.
Another example where the main view shows 2 connections on the actions_email_attatchments
table:
When viewed from the actions_email_attatchments
table view the connections are shown:
Finally a mixed example where both types of FKs are on the table: When this table is viewed in focus only the owned FKs are shown:
For comparison, here is an example from MySQL working as expected in a similar context. The main ERD shows all connections: And in the table focussed ERD the connections and associated tables still show up:
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Thanks for detailed report. I did find the bug (it was in schema constraints/indexes caching function), it’ll be fixed in the next version.
I have a similar (maybe worse?) issue with DBeaver 21.0.2.202104042040 and postgres-db, but not with an oracle-db.
In postgres, if I click a table from the tree, the ER-Diagram shows ONLY that table and NO foreign key relationships, even ones owned by the table. But if I click the schema, all tables with fk relationships are shown. E.g. see images below.
In oracle, if I click a table from the tree, the ER-Diagram shows that table in the center with all fk relationships shown in the diagram.