75

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.

sheidaei
  • 9,842
  • 20
  • 63
  • 86

5 Answers5

69

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

enter image description here

midi
  • 3,128
  • 5
  • 30
  • 47
23

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.

runejuhl
  • 2,147
  • 1
  • 17
  • 17
sheidaei
  • 9,842
  • 20
  • 63
  • 86
21

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.

Loofer
  • 6,841
  • 9
  • 61
  • 102
user2669758
  • 227
  • 2
  • 3
  • 20
    Hello, where is the tab for the Graphical Query Builder? I have the query tool, but then the options within it are no tabs gall GQB. Where can i find this tool? – Mel Feb 01 '17 at 03:54
  • 2
    pgAdmin removed this feature in newer versions, sadly. – Pepper Paige Jan 07 '20 at 15:16
  • 5
    in pgAdmin 4 right click on database -> Generate ERD (Beta) – Max Jul 05 '21 at 09:37
6

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

karl
  • 61
  • 1
  • 1
2

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