Skip to main content

PostgreSQL

This section explains how to create, configure, and test a PostgreSQL data source in DataDios.


Steps to Create and Test a PostgreSQL Data Source​

Step 1: Create a Data Source​

  1. Navigate to Data Explorer from the left navigation menu.

  2. Click + Add connection in the top-right corner. The Create data source dialog opens.

  3. Under Identity, enter a Name for the datasource and select PostgreSQL Database from the searchable Type dropdown.

    Create data source dialog

    note

    The tab strip in this screenshot predates 2026-09-09 and still shows a Lineage tab. That tab was removed. Recapture is tracked in dd-docs#208.


Step 2: Fill Connection Details​

In the Connection Parameters section, provide:

  • Host: PostgreSQL host or IP address
  • Port: PostgreSQL port (default: 5432)
  • Username: PostgreSQL login username
  • Select Secret Source: choose Direct Input to type the password here, or select a configured secret store
  • Enter Secret Key: the password for the account (shown only when Secret Source is Direct Input)
  • Database: database to connect to
  • Schema: target schema (leave blank to use the default schema)
  • Object Types: choose whether to fetch tables, views, or both
  • Schedule Sync: configure for metadata timeline synchronization (see Metadata Timeline)
  • Sync Batch Size: optionally control how much metadata is fetched per batch

The dialog can also show Drift, Workload, and Profiling tabs for optional capabilities — these are optional and can be turned on later from Edit:

  • Drift — toggle Enable drift tracking to monitor the source for schema changes.
  • Workload — toggle Enable workload analysis and pick from PostgreSQL-specific workflows (PG Table Storage Usage, PG Database Storage Usage, PG Query Workload, and more). Counters that start out as lifetime totals (such as the PG Table Storage Usage tuple counts) are stored as per-interval changes; when a counter is switched to that form, charts leave out the older lifetime values, so a time range spanning the switch shows only the new changes.
  • Profiling — toggle Enable data profiling to collect column/table-level facts for quality rules and search.

Step 3: Test Connection​

Click Test Connection to validate the credentials before saving.


Step 4: Save Data Source​

If the test succeeds, click Create. You'll land back on the Sources list with the new PostgreSQL connection visible.


Step 5: Explore Data Source Items​

Click the connection's name to drill down through its hierarchy — connection → database → schema → table — with tabs that change at each level:

LevelTabs
ConnectionSources · Lineage · Drift · Data Quality
DatabaseSources · Lineage · Drift · Data Quality · Queries
SchemaSources · Lineage · Drift · Data Quality
TableMetadata · Data Preview · Profile · Quality Rules · Lineage · History

Connection-level tabs

Database-level tabs

Schema-level table listing

Open a table to view its Metadata tab — Attributes, Constraints, FK Relationships, Indexes, and Partitions, plus Definition for a view or procedure. The Attributes table lists ATTR_SNO, ATTR_NAME, DATA_TYPE, DATA_LENGTH, DATA_SCALE, NULLABLE, and GENERIC_TYPE.

For a view or procedure that has been renamed, dropped, or whose definition has become unreadable at the source since the last catalog refresh, the Definition tab shows that reason in place of the DDL, along with a Recheck now button. The button re-reads that one object live — it does not refresh the wider catalog tree.

PostgreSQL table Metadata tab

Other useful tabs on the same table:

  • Data Preview — a row-level data grid of the table's actual content.

    PostgreSQL table Data Preview tab

  • Profile — column- and table-level profiling facts, populated when Enable data profiling is on for the connection.

  • Quality Rules — the Active Rules configured for this table (Rule, Type, Severity, Dimension, Category, Hub). For detailed information, refer to the Data Quality documentation.

    PostgreSQL table Quality Rules tab

Server settings​

A PostgreSQL connection also lists its server settings (the pg_settings view) as an item named SERVER_SETTINGS. Open it to see the Configuration and History tabs. DataDios reads the settings on each metadata sync, so run a sync first.

note

The first metadata sync after the upgrade that adds this tab has no earlier settings to compare with, so each PostgreSQL source raises one drift alert for them. It does not repeat. A sync that cannot read a setting says how many objects could not be compared, instead of reporting no change.

Configuration tab​

The tab opens with a summary line: Settings, Changed from default, Pending restart and Off expected (the last is red when it is not zero). Below it is a grid, grouped by setting category (for example Memory, Connections, Security):

ColumnWhat it shows
SettingThe setting's name
ValueIts current value, with its unit (for example 1048576 8kB)
DefaultThe server's built-in default
SourceWhere the value comes from (for example default or configuration file)

A badge column at the right shows what needs attention:

BadgeMeaning
Changed 12 Oct · HighThe value changed in a sync during the last month, with how serious DataDios rates a change to that setting (High, Medium or Low)
Off expected: onThe value is not what DataDios expects for this setting, shown with the expected value
Restart neededThe value differs from the default and the setting only takes effect after a server restart
Pending restartThe server holds a new value that will apply only after a restart

To narrow the grid, type in Search settings (matches the setting name), or turn on one or more filter buttons:

  • Changed from default: Value differs from Default.
  • Pending restart: a restart is waiting to apply the setting.
  • Off expected: the value breaks the expected value.
  • Unlisted: settings DataDios has no rule for (no severity or expected value).

The tab handles four states:

StateWhat you see
LoadingA spinner while the settings load
Empty"No settings have been read from this source yet. Run a metadata sync to read them."
Error"Couldn't load the configuration."
No permission"You don't have permission to view this configuration."

If only the recent-change badges cannot load, the grid still shows and a "Recent changes unavailable." note appears.

History tab​

History lists the stored versions of the item over the last month. Each version shows what changed against the one before it, so you can see which setting changed, from what value to what value, and when. The History tab shows the same for any other item that has stored versions.


Best Practices​

  1. Use Secret Store for passwords to avoid hardcoding credentials
  2. Always Test Connection before saving to ensure configuration is correct
  3. Enable only what you need — Drift, Workload, and Profiling are optional and can be turned on later from Edit if you don't need them at creation time
  4. Leverage Schedule Sync to keep metadata timelines updated

For more details on configuring PostgreSQL with metadata sync, see the Metadata Timeline.