Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create an ER diagram in pgAdmin [closed]

Please provide a step-by-step answer on how to build a basic Entity-Relationship Diagram (ERD) using the admin tool that comes with postgres (pgAdmin) with the the database designer that comes with postgres.

Note that the general question on what is the best way to generate a diagram from postgres, is addressed in this softwarerecs.stackexchange question

like image 337
vdegenne Avatar asked Mar 13 '12 22:03

vdegenne


People also ask

Can we create ER diagram in postgresql?

As a Postgres ER diagram tool, Navicat has the essential features for modeling your conceptual, logical, and physical data models. You can create complex ER Diagrams in Navicat using one of three standard notations: Crow's Foot, UML, or IDEF1x.


2 Answers

Update

Sadly, the database designer is not released with the main release of pgAdmin after all. (At least the case for version 1.16 through 1.22.)

See discussion here and here and finally:

You need to use --enable-databasedesigner with ./configure to enable it. By default, it's disabled.

There are too many bugs and rough edges and not enough people interested to work on it.


pgAdmin had a GSoC project in 2011, in the course of which Luis Ochoa designed the new database designer - which can also reverse engineer ER diagrams from existing dbs. Unfortunately it wasn't ready for release with pgAdmin 1.14 (the current version). But it's in the repository for version 1.16 that will probably accompany the release of PostgreSQL 9.2.

See a video here.
Screenshot.
Blog post announcing it.

There are still some rough edges, but Luis Ochoa recently announced he is working on it.

like image 143
Erwin Brandstetter Avatar answered Sep 28 '22 03:09

Erwin Brandstetter


If you are running Linux, you could use pgDesigner: http://sourceforge.net/projects/pgdesigner/

like image 36
tmikulcek Avatar answered Sep 28 '22 03:09

tmikulcek