5

Don't hold it against me, but I have a fond memory of MS SQL Server Management Studio. I could very easily generate an ERD diagram from an existing database. Tables, relationships, the works. You could even use the diagram to edit the database structure.

I can't find such a tool in pgAdmin III. Am I missing something? It seems there isn't one built-in. Is there a plugin? Or a separate tool?

(I have found references to using Dia and other tools to model first and then generate the SQL to create the database. This is nice, but secondary to my primary goal which is to generate a diagram from an existing PostgreSQL database. And to truly replicate Management Studio functionality, the application would have to work in both directions.)

lofidevops
  • 20,924

3 Answers3

1

SchemaSpy

http://schemaspy.sourceforge.net

Lightweight, easy install, straight to the point and comprehensive.

Licensing: LGPL 2.1 (linked from main page)

lofidevops
  • 20,924
edelans
  • 263
  • 2
  • 6
1

Schema Crawler

http://www.schemacrawler.com

"SchemaCrawler is a free database schema discovery and comprehension tool... output the schema and data in a readable text format. The output serves for database documentation, and is designed to be diff-ed against other database schemas. SchemaCrawler also generates schema diagrams."

deb installer: https://github.com/adriens/schemacrawler-deb
Licensing: https://sualeh.github.io/SchemaCrawler/license.html (GPLv3)

lofidevops
  • 20,924
1

EMS SQL Manager for PostgreSQL

http://www.sqlmanager.net/products/postgresql/manager

Powerful visual database designer

Two diagram notations (IDEF1x and IE)
Useful diagram navigation tool
Reverse engineering
Several pages in one diagram to divide diagram into different subject areas
Ability to create, edit and drop tables and table fields, set links between tables visually
Ability to add comments to diagram
Saving as image or printing database diagram
A lot of visual customization options

It is a windows program but works preety fine under wine

lofidevops
  • 20,924
dafi
  • 11