Skip to content
pgModeler - PostgreSQL Database Modeler - is an open source data modeling tool designed for PostgreSQL. No more DDL commands written by hand let pgModeler do the job for you! This software reunites the concepts of entity-relationship diagrams and the features that PostgreSQL implements as extensions of SQL standards. Support this project by dona…
C++ KiCad QMake Shell Eagle Inno Setup
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

PostgreSQL Database Modeler - pgModeler

PostgreSQL Database Modeler, or simply, pgModeler is an open source tool for modeling databases that merges the classical concepts of entity-relationship diagrams with specific features that only PostgreSQL implements. The pgModeler translates the models created by the user to SQL code and apply them onto database clusters from version 8.0 to 9.1.

Please, let me know how the pgModeler is working on your system! Help to improve this project, give your feedback about the software or report any bug at Issues page. Additionaly, follow the pgModeler profile on Facebook or Twitter and be up-to-date with new features, fixes and releases.


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 3.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See LICENSE for details.

Donate to pgModeler

Making a software is no easy task! With pgModeler was no different. Much effort, coffee, chocolate, time and knowledge has been devoted to the project so that a usable and constantly improved product is delivered to the community free of charge.

Despite all many feature contribution all open source project needs sometimes a financial incentive, this way the developer realizes that his product is even more valuable.

If you like the project and think it deserves a contribution please donate any amount (via PayPal) on project's official site. The pgModeler's author will be immensely grateful for your support and will continue to improve the tool until its maximum pontential.


For details about installation process from source code see If you don't want to compile pgModeler there are binaries available for download at Downloads section.

Running pgModeler

The pgModeler can be executed directly from de executable but it is necessary change some environment variables, see For convinience there are two scripts used to startup pgModeler.

  • Windows users: use the start-pgmodeler.bat script. By default this script consider that pgModeler is installed on c:\pgmodeler if you desire to set other location edit the script and change the PGMODELER_* environment variables.

  • Linux/Unix users: use the script. By default this script consider that pgModeler is installed on current working directory AKA pwd if you desire to set other location edit the script and change the PGMODELER_* environment variables.

Known bugs

  • Broken compilation process on MacOSX. (issue#10)
  • PgModeler, when compiled on Qt 4.7.x, crashes after activating the print dialog. (issue#1)

Change Log

[ v0.4.0 ]

Attention: The v0.4.0 is in alpha stage so the change log can be modified at any moment when new bug fixes / features is implemented. The stable 0.4.0 has no release date yet because all the code is being refactored meaning that the new version will be completely decoupled from previous versions.

  • [New]: the user now can add relationships only creating foreign keys on tables (fk relationships).
  • [New]: added a french UI translation (provided by toorpy).
  • [Change]: relationship validation method now removes fk relationships when the foreign keys that gerenates is no longer exists.
  • [Change]: copy/cut/delete commands does not manipulates system objects like schema public and languages C, SQL and plpgsql.
  • [Fix]: corrected bug that was removing fk relationships when pasting objects.
  • [Fix]: corrected SQL syntax error of 'timestamp with time zone'.
  • [Fix]: corrected constraint type showing on editing form.
  • [Fix]: corrected bug on cyrillic typed enums and check constraints expressions.
  • [Fix]: corrected bug on enumeration type editing form.
  • [Fix]: corrected bug on 'truncate' table privilege code generation.
  • [Fix]: corrected column default value code generation.
  • [Fix]: dummyplugin build process corrected on Windows.
  • [Fix]: corrected bug on column comment code generation.
  • [Fix]: corrected bug that was deleting two tables at once.

The complete change log can be found on file.

Older Releases/Code

The older code and releases of pgModeler can be found at

Something went wrong with that request. Please try again.