High-quality ERD generator for PostgresQL under Linux?

40,147

Solution 1

This is a little bit dated question, but for completeness. What about PgModeler? According to their github repo it's under GPL3. Schema creation works well.

Solution 2

DbSchema is a Visual Designer for Relational & NoSQL Databases. It can be evaluated 15 days for free. After that a paid License must be purchased.

It can be used to generate a ERD for Postgresql as well as other databases.

Downloading installer

Installers are available to download for various platforms (Linux, Windows and MacOS).

Installing and running DbSchema on Linux

To install run following commands in your shell:

wget https://dbschema.com/download/DbSchema_unix_8_2_5.tar.gz
tar xf DbSchema_unix_8_2_5.tar.gz
cd DbSchema
chmod +x DbSchema_unix_8_x_x.sh

To run DbSchema:

./DbSchema_unix_8_x_x.sh

Note: Dependent on the downloaded version (e.g. 8_2_5) the commands above may change (i.e. replace 8_x_x with downloaded 8_2_5).

Solution 3

You may try DbVisualizer. In my opinion, DbVisualizer in references graphs has met my needs in generating ERD from existing database.

Share:
40,147
Dave Jarvis
Author by

Dave Jarvis

https://dave.autonoma.ca/blog/

Updated on July 09, 2022

Comments

  • Dave Jarvis
    Dave Jarvis almost 2 years

    Background

    MySQL Workbench can produce appealing and high-quality ERDs such as:

    Research

    What PostgreSQL ERD tools are available that meet the requirements? The following are unsuitable:

    Requirements

    Looking for an ERD tool:

    • Visually stunning by default
    • Can reverse-engineer a PostgreSQL (or JDBC-compliant) database
    • Runs on Linux (or under WINE)
    • Export high-resolution PNG (or SVG)
    • Free or Open Source
  • Dave Jarvis
    Dave Jarvis almost 14 years
    Black and white squares. No drop-shadows, no rounded corners, no grouping (?), doesn't automatically prevent lines from being covered.
  • jhexp
    jhexp over 11 years
    Not yet. I'm looking into the latest version (0.4.0-beta). It seems that it supports pretty much everything that maps into postgres features or ddl. Binary for windows is 11mb gzipped and doesn't require installation.
  • 09Q71AO534
    09Q71AO534 over 10 years
    is there any thing to install to make this work in windows. I am using pgadmin III is there a way to make some reverse engineering for getting the ERD diagrams
  • Awi
    Awi over 10 years
    Latest version ( 0.6.0) does support reverse engineering and automated grouping tables by schema (one color for each schema).
  • Fandi Susanto
    Fandi Susanto over 10 years
    Just tried ver 0.6.1 today. Intuitive UI, great features considering it's free. But for complex diagram, the table columns often reorder itself, and it sometimes crash. You can use it if you don't mind those things.
  • momeara
    momeara almost 10 years
    It isn't free or open source
  • puk
    puk over 8 years
    I find this program to be unreliable. I can't even connect to the database even though it's installed locally
  • Tobia
    Tobia about 8 years
    I can confirm it works very well. It has good auto-routing functions and decent manual positioning support. It can export the image at arbitrary resolution (just set the zoom level) but if you need some minor graphical tweaks, such as coloring the boxes or adding captions, you can export as SVG and edit it in Inkscape. dbvis.com/images/features/screens/referencesGraph.png
  • Victoria Stuart
    Victoria Stuart almost 7 years
    Appears to work well, but note: "DbSchema Ultimate Edition can be evaluated ( trial ) for 15 days after installation. After this period the application will switch to Free Edition with limited features and number of tables." [ dbschema.com/index.html | dbschema.com/editions.html ]
  • Victoria Stuart
    Victoria Stuart almost 7 years
    pgModeler: very long install (Arch Linux AUR: pacaur; g++ ...), but like DbSchema also appeared to work OK, looks nice. Using DBeaver, however: nice interface; integrated ERD for multiple RDBMS including PostgreSQL ... [ dbeaver.jkiss.org ]
  • cardamom
    cardamom over 5 years
    The install really is a bit of a nightmare, this helped me to get pgmodeller to work in Debian 9 - github.com/pgmodeler/pgmodeler/issues/911
  • hc_dev
    hc_dev over 4 years
    Seems DBSchema has no Free Edition anymore, but still 15-days trial. Suggested update to this post including links.