How to visualize database tables in postgresql using pgAdmin?

SqlDatabasePostgresqlPgadmin

Sql Problem Overview


I am trying to visualize tables and their relations using pgAdmin. I have understood that there is a query visualizer tool available for pgAdmin. However, that only is useful if you are dealing with queries. My main goal is to generate a graphical representation of all the tables available in database.

Sql Solutions


Solution 1 - Sql

In pgAdmin 4 right click on the database and then "Generate ERD (Beta)"

enter image description here

Solution 2 - Sql

I have found this webpage on postgresql wiki, with various tools on utilizing a postgresql database. I have used DbWrench on Mac to generate the ERD.

Solution 3 - Sql

For pgadmin 3 Go to Tools -> Query Tool

Graphical Query Builder is a tab in the Query Tool view.

unfortunately Pgadmin 4 does not have this option.

Solution 4 - Sql

try pgModeler - there is working demo (although limited by number of objects). Also only PostgreSQL 9.x is supported.

Solution 5 - Sql

You can use JetBrains DataGrip for visualize your database schemas. Create a connection to DB, and right click on [shema name] -> Diagrams -> Show visualisation.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionsheidaeiView Question on Stackoverflow
Solution 1 - SqlmidiView Answer on Stackoverflow
Solution 2 - SqlsheidaeiView Answer on Stackoverflow
Solution 3 - Sqluser2669758View Answer on Stackoverflow
Solution 4 - SqlkarlView Answer on Stackoverflow
Solution 5 - SqlSwatar CommonView Answer on Stackoverflow