- Create a service account in PostgreSQL with the appropriate permissions for Validio. See Prerequisites.
- Create a Validio credential to connect to the service account. See Add a PostgreSQL Credential.
- 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. You can use this SQL script to set up a user and grant the necessary permissions for the source in Validio:- Copy this script to a SQL worksheet.
- Follow the steps described in the script.
SQL
Add a PostgreSQL credential

Configuration for PostgreSQL credential
- Navigate to Credentials and click + New credential.
- Under Namespace, select a namespace where the resources will be created.
- For Credential Type, select PostgreSQL Credential.
- Fill in the credential parameter fields. Refer to the PostgreSQL Credential Parameters table.
- Check Use for catalog and schema checks to automatically discover credentials and add them to the catalog page.
- Click Create.
PostgreSQL credential parameters
Add a PostgreSQL source

Configuration for PostgreSQL source
- Navigate to Sources and click + New source.
- Under Source type, select PostgreSQL.
- Under Config,
- Select the valid Credential or create a new credential to authenticate your connection to the data warehouse.
- You have two options for specifying the dataset and tables to monitor:
- 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.
- Use Custom SQL — Write a valid SQL query to specify the tables to monitor.
- Set the Polling schedule, which is how frequently the validators on the source will check for changes.
- 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.
- Under Source details,
- Add Tags to help group related sources or to use for routing notifications.
- Add an Owner who will be the contact for incident notifications.
- Assign a Priority, which indicates the importance of incidents detected on this source.
- 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:- Copy this script to a SQL worksheet.
- Follow the steps described in the script.
Text