Please suggest a tool to reverse engineer a PostgreSQL DB into an entity-relationship-diagram (ERD) or equivalent ??

Ideally, I'm looking for a simple ERD or UML class diagram in a format that is easy to work with (SVG, PDF or any common UML file format).

So far, I founded only software for MySQL and it's for Windows, but that's not solution.

closed as off-topic by dezso, Michael Green, Colin 't Hart, RLF, Kin Shah Jul 31 '15 at 13:19

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Shopping list question - questions about which tool, library, product or resource you should use are off-topic here because they quickly become obsolete and often are just about the preferences of the answerer. If you have an issue with or a question about a specific tool, please revise your question to conform to that scope." – dezso, Michael Green, Colin 't Hart, RLF, Kin Shah
If this question can be reworded to fit the rules in the help center, please edit the question.


Have a look at at (the order of the items implies my personal choices)

All of them work with PostgreSQL (and other DBMS)

(Note: I have nothing to do with DbSchema. I just think it's a pretty good tool)


pg_autodoc is what I have used. It converts to dia UML diagrams. Seems to work ok. http://www.rbt.ca/autodoc/

  • does this work on newer version of PostgreSQL? 8.x and above? – Phill Pafford Oct 12 '12 at 14:20
  • I have used it on 7.x through 9.x. – Chris Travers Oct 12 '12 at 14:28
  • That creates a table diagram. Getting from there to an entity-relationship diagram is another step. – Peter Eisentraut Jan 2 '13 at 15:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.