Skip to main content
PostgreSQL is an open-source relational database management system known for its extensibility, standards compliance, and support for advanced data types. Integrating Validio with your PostgreSQL database lets you monitor, analyze, and validate your data assets. To integrate with PostgreSQL,
  1. Create a service account in PostgreSQL with the appropriate permissions for Validio. See Prerequisites.
  2. Create a Validio credential to connect to the service account. See Add a PostgreSQL Credential.
  3. Create a Validio source to monitor the tables in the PostgreSQL database. See Add a PostgreSQL Source.

Prerequisites

Set up an account in PostgreSQL with the necessary permissions for Validio to read and validate your data. For more information about credentials in Validio, see Credentials. For detailed information about permissions in PostgreSQL, refer to Privileges.
Credential Permission RequirementsValidio Credentials require VIEWER access rights when connecting to sources to read and access data. Admins must ensure that they do not provide EDITOR access rights to their credentials.
You can use this SQL script to set up a user and grant the necessary permissions for the source in Validio:
  1. Copy this script to a SQL worksheet.
  2. Follow the steps described in the script.
SQL

Add a PostgreSQL credential

The PostgreSQL credential configuration form, showing host, port, user, password, and default database fields

Configuration for PostgreSQL credential

To add a credential for PostgreSQL,
  1. Navigate to Credentials and click + New credential.
  2. Under Namespace, select a namespace where the resources will be created.
  3. For Credential Type, select PostgreSQL Credential.
  4. Fill in the credential parameter fields. Refer to the PostgreSQL Credential Parameters table.
  5. Check Use for catalog and schema checks to automatically discover credentials and add them to the catalog page.
  6. Click Create.
Validio will validate the connection to the PostgreSQL account. If validation passes, Validio will automatically start fetching data. If validation fails, check that you provided the correct parameter values and try again. Once the credential is created, you can add a source to monitor PostgreSQL data.

PostgreSQL credential parameters

SSL modes

The SSL mode sets whether Validio encrypts the connection to the PostgreSQL server, and how strictly it verifies the server certificate. The modes are listed from least to most strict. Credentials created before SSL mode was available connect as Prefer. Changing the mode to Disable, Allow, or Prefer removes any stored TLS CA certificate.

Add a PostgreSQL source

The PostgreSQL source configuration form, showing credential, database, schema, and table selection

Configuration for PostgreSQL source

To add a source for PostgreSQL,
  1. Navigate to Sources and click + New source.
  2. Under Source type, select PostgreSQL.
  3. Under Config,
    1. Select the valid Credential or create a new credential to authenticate your connection to the data warehouse.
    2. You have two options for specifying the dataset and tables to monitor:
      1. Select an existing table — Enter the Database, Schema, and Table to specify where the data comes from. Selecting more than one table will create a new source for each table. Refer to the Source Configuration Parameters table.
      2. Use Custom SQL — Write a valid SQL query to specify the tables to monitor.
    3. Set the Polling schedule, which is how frequently the validators on the source will check for changes.
  4. Under Schema, click Continue to automatically infer the schema fields from the tables you selected. If you select many tables, this operation can take a few minutes to complete.
  5. Under Source details,
    1. Add Tags to help group related sources or to use for routing notifications.
    2. Add an Owner who will be the contact for incident notifications.
    3. Assign a Priority, which indicates the importance of incidents detected on this source.
  6. Click Continue to create the source. Source names are generated automatically and will be displayed when the source creation completes. If there are more than 5 sources, you will see the names for the first five and a count of the remaining sources.

Source configuration parameters

Remove Source permissions

You can use this SQL script to remove configured permissions for the Source in Validio:
  1. Copy this script to a SQL worksheet.
  2. Follow the steps described in the script.
Text