Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

MySQL has MySQL Workbench for designing and documenting your schema, and generates CREATE and ALTER scripts based on your design. We're looking at migrating to PostgreSQL in the near future, and we do need a practical way of documenting and modifying the schema structure.

What similar tools exist for Postgres (that are OS X/Linux compatible)? Alternatively, what equivalent conventions would be followed for designing and documenting the structure of your Postgres database?

share|improve this question

closed as off topic by gnat, Walter, ElYusubov, World Engineer, StuperUser Oct 22 '12 at 9:54

Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

I like generating documentation using tools such as SchemaSpy, which generates stuff like http://schemaspy.sourceforge.net/sample/

I'm not a fan of graphical ERD tools; pen and paper work sufficiently well for me. I use yEd for generating graphs occasionally, but it doesn't generate SQL (although how much work is that anyway?).

Maintaining the schema, I like having SQL files which can recreate the schema from scratch. I write ALTER TABLE scripts manually and have never felt the need to automate them much- the best tool I've seen to do that is sqitch, though.

share|improve this answer

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