PostgreSQL ER diagram: graphics

A PostgreSQL schema with tables, enums, domains, composite types and functions gets busy fast. Color helps readers find their way: one color per business area, or one per object type, so types and functions stand apart from tables. In Luna Modeler graphics for PostgreSQL ER diagrams are set on three levels:

  • Project: defaults for the whole project.
  • Diagram: settings for one diagram.
  • Object: colors for a single table, type or function.

A lower level overrides a higher one. None of these settings change the generated SQL.

Colors and graphics defined on the project level

Project colors help when you work with several PostgreSQL projects, for example production and development. Give each a different background, line or footer color.

Click an empty part of the diagram so that no object is selected, then change the colors in the Graphics section.

If you keep the side panel closed, double click the project name to open the Project form and use its Graphics tab.

Setting footer color for the PostgreSQL ER Diagram

Graphics on the diagram level

Click the diagram area to show its properties in the right side panel. Change the background color, the relationship color and the relationship display mode for this diagram.

Setting background color for the PostgreSQL ER Diagram

Graphics on the object level

Select a table, composite type, enum, domain, function or any other object and change its colors in the Graphics section of the right side panel.

Changing colors for the PostgreSQL ER Diagram objects

You can also double click the object and set the text and background colors on the Graphics tab of its form.

To apply the same look to many objects, copy the format of one and apply it to the others.

Copy and apply format in PostgreSQL ER diagram.
PostgreSQL ER diagram graphics: FAQ
Do colors affect the generated PostgreSQL SQL?
No. Colors and other graphics settings only change how the diagram looks.
Which color setting has priority?
The most specific one. Object colors override diagram colors, which override project colors.
How can I color many tables at once?
Set the colors on one object, copy its format and apply it to the other selected objects from the context menu.
How do I tell my PostgreSQL projects apart?
Give each project its own background, line or footer color in the project Graphics section, for example one color for production and another for development.