TimescaleDB
Adding and configuring a TimescaleDB connection within Qualytics empowers the platform to build a symbolic link with your schema to perform operations like data discovery, visualization, reporting, syncing, profiling, scanning, anomaly surveillance, and more.
This documentation provides a step-by-step guide on adding TimescaleDB as a source datastore in Qualytics. It covers the entire process, from initial connection setup to testing and finalizing the configuration.
By following these instructions, enterprises can ensure their TimescaleDB environment is properly connected with Qualytics, unlocking the platform’s potential to help you proactively manage your full data quality lifecycle.

Let’s get started 🚀
TimescaleDB Setup Guide
Qualytics connects to TimescaleDB through the PostgreSQL JDBC driver. TimescaleDB is a PostgreSQL extension, so the permission model follows the same PostgreSQL conventions. Qualytics uses the standard JDBC metadata APIs both to list the schemas the role can see and to discover tables, including hypertables, along with their columns and primary keys. Qualytics automatically filters out TimescaleDB internal schemas (timescaledb_information, timescaledb_experimental) during schema discovery.
Minimum TimescaleDB Permissions (Source Datastore)
| Permission | Purpose |
|---|---|
CONNECT ON DATABASE |
Allow the role to connect to the target database |
USAGE ON SCHEMA <schema_name> |
Access objects within the target schema |
SELECT ON ALL TABLES IN SCHEMA |
Read data from all existing tables (including hypertables) for profiling and scanning |
SELECT ON ALL SEQUENCES IN SCHEMA |
Read sequence metadata for incremental field detection |
Note
Qualytics does not support TimescaleDB as an enrichment datastore. You can point to a different enrichment datastore instead.
Example: Source Datastore Role (Read-Only)
Replace <database_name>, <schema_name>, and <password> with your actual values.
-- Create a dedicated read-only role
CREATE ROLE qualytics_read_role LOGIN PASSWORD ‘<password>’;
-- Grant connection and schema access
GRANT CONNECT ON DATABASE <database_name> TO qualytics_read_role;
GRANT USAGE ON SCHEMA <schema_name> TO qualytics_read_role;
-- Grant read access to all existing and future tables (including hypertables)
GRANT SELECT ON ALL TABLES IN SCHEMA <schema_name> TO qualytics_read_role;
GRANT SELECT ON ALL SEQUENCES IN SCHEMA <schema_name> TO qualytics_read_role;
ALTER DEFAULT PRIVILEGES IN SCHEMA <schema_name> GRANT SELECT ON TABLES TO qualytics_read_role;
Note
Qualytics automatically filters out system schemas (pg_catalog, pg_toast, pg_internal, information_schema, timescaledb_information, timescaledb_experimental) during schema discovery. You do not need to restrict access to these schemas manually.
Troubleshooting Common Errors
| Error | Likely Cause | Fix |
|---|---|---|
FATAL: password authentication failed |
Incorrect username or password | Verify the credentials and ensure the role exists with \du in psql |
FATAL: no pg_hba.conf entry for host |
The TimescaleDB server does not allow connections from the Qualytics host IP | Add the Qualytics IP to pg_hba.conf and reload the configuration |
permission denied for schema |
The role lacks USAGE on the target schema |
Run GRANT USAGE ON SCHEMA <schema_name> TO <role> |
permission denied for table |
The role lacks SELECT on one or more tables |
Run GRANT SELECT ON ALL TABLES IN SCHEMA <schema_name> TO <role> |
relation does not exist |
The hypertable or table name is incorrect, or the user cannot see it | Verify the table exists with \dt in psql and check schema permissions |
Detailed Troubleshooting Notes
Authentication Errors
The error FATAL: password authentication failed indicates that the credentials provided are incorrect or the role does not exist.
Common causes:
- Incorrect password: the password does not match the one set for the role.
- Role does not exist: the role name was misspelled or was never created.
- Authentication method mismatch: the
pg_hba.conffile requires a different authentication method (e.g.,md5vsscram-sha-256).
Note
TimescaleDB uses the same authentication system as PostgreSQL. Check pg_hba.conf and PostgreSQL server logs for detailed error information.
Permission Errors
The error permission denied for schema or permission denied for table means the role authenticated successfully but lacks the necessary grants.
Common causes:
- Missing
USAGEon schema: the role cannot access the schema even if table-level grants exist. - Missing
SELECTon tables: the role has schema access but cannot read specific tables or hypertables. - Default privileges not set: new tables created after the initial grant are not automatically accessible. Use
ALTER DEFAULT PRIVILEGESto fix this.
Connection Errors
The error FATAL: no pg_hba.conf entry for host means the TimescaleDB server does not recognize the Qualytics host IP.
Common causes:
- IP not whitelisted: the Qualytics server IP is not listed in
pg_hba.conf. - Wrong database name: the
pg_hba.confentry restricts access to specific databases. - SSL required: the server requires SSL connections but the client is connecting without SSL.
Tip
Start by confirming credentials are valid (authentication errors), then verify schema/table permissions (permission errors), and finally check network connectivity (connection errors).
Add a Source Datastore
A source datastore is a storage location Qualytics connects to so it can profile, scan, and monitor data. Adding TimescaleDB as a source lets Qualytics query it over JDBC with the PostgreSQL driver and run quality operations on the tables it discovers.
Before you start, review the Minimum TimescaleDB Permissions the connecting role needs.
Enrichment lives on another connector
Qualytics does not support TimescaleDB as an enrichment datastore. Create the enrichment datastore on a supported connector instead, then link it to your TimescaleDB source datastore. See Supported Enrichment Datastores for the list.
Field reference
The Add Datastore page shows the sections below when TimescaleDB is selected. When reusing an existing connection, the Connection Properties and Secrets Management sections come already filled in and read-only: Qualytics has already validated those credentials, so you fill in only the Datastores Extraction and the Datastore Properties. To change a saved connection's credentials, edit the connection through the Manage Connections page; edits there apply to every datastore that reuses the connection.
Connection Properties
These fields define the TimescaleDB server Qualytics connects to and the role it connects with. They belong to the connection: when reusing an existing connection, they come already filled in and read-only.
| FIELD | REQUIRED | TYPE | DESCRIPTION |
|---|---|---|---|
| Connection Name | Text | A label for the saved connection (e.g., acme_timescale_reporting), so other datastores can reuse it later. |
|
| Host | Text | The hostname or address of the TimescaleDB server. | |
| Port | Number | The port the instance listens on. Defaults to 5432. |
|
| User | Text | The role Qualytics connects as. | |
| Password | Text | The password for that role. |
Secrets Management
This group is optional: use it only if you want Qualytics to pull credentials from a secrets manager instead of typing them into the form. Turn on HashiCorp Vault to show the fields below. Despite the label, any secrets manager that exposes a compatible REST API works, not only HashiCorp Vault; see Secrets Management. It also belongs to the connection: read-only when reusing an existing connection.
| FIELD | REQUIRED | TYPE | DESCRIPTION |
|---|---|---|---|
| Login URL | Text | The Vault endpoint Qualytics uses to authenticate (e.g., https://vault.example.com/v1/auth/approle/login). |
|
| Credentials Payload | Text | A JSON body containing the credentials Vault expects (e.g., {"role_id":"...","secret_id":"..."}). |
|
| Token JSONPath | Text | The JSONPath that extracts the client token from Vault's response. Defaults to $.auth.client_token. |
|
| Secret URL | Text | The Vault path where the secret is stored (e.g., https://vault.example.com/v1/secret/data/timescale). |
|
| Token Header Name | Text | The HTTP header name used to send the token. Defaults to X-Vault-Token. |
|
| Data JSONPath | Text | The JSONPath that extracts the secret payload from Vault's response. Defaults to $.data. |
Datastores Extraction
Pick the database and the schema or schemas Qualytics should read from. You fill these in on both flows.
| FIELD | REQUIRED | TYPE | DESCRIPTION |
|---|---|---|---|
| Database | Option | The database to read from. Click the refresh icon to load the databases the role can connect to. | |
| Schema | Option | One or more schemas inside the selected database. Each schema you pick becomes its own Qualytics datastore. Defaults to public. |
One datastore per schema
Selecting more than one schema creates one source datastore per schema, named from the Name Template. See Multi-Schema Source Datastore Creation for details.
System schemas
The information_schema, pg_catalog, pg_toast, and pg_internal schemas are left out of discovery, along with the temporary schemas whose names start with pg_temp_ or pg_toast_temp_, and TimescaleDB's own timescaledb_information and timescaledb_experimental schemas.
Datastore Properties
Common fields for every source datastore, shown below the Datastores Extraction section. You fill these in on both flows.
| FIELD | REQUIRED | TYPE | DESCRIPTION |
|---|---|---|---|
| Name Template | Text | Defines the naming pattern for each source datastore being created. Use {{schema}} as a placeholder that gets replaced with the actual schema name (e.g., ts_{{schema}} becomes ts_sales). Left empty, the datastore is named from the connection name and the schema. |
|
| Group | Option | Organizes your datastores under a shared group in the navigation tree. Select an existing group or create a new one with the Add New Group toggle. | |
| Teams | Option | Select one or more teams to associate with this source datastore. | |
| Initiate Sync | Checkbox | Automatically sync the datastore to detect containers and fields after creation. |
Steps
There are two ways to set up the connection: reuse a connection you already saved (Existing Connection) or create a new one from scratch (New Connection). The tabs below walk through each option; pick the one you want to follow. Each field is described in the Field reference above.
Step 1: Navigate to the Source Datastores page.
Step 2: Click the Add Source Datastore button at the top-right corner.
Step 3: The Add Datastore page opens.
Step 4: Select New Connection next to the Search field.
Step 5: Select TimescaleDB from the connector grid. Use the search field to filter connectors by name.
Step 6: Fill in the Connection Properties: the Connection Name, Host, Port, User, and Password.
Step 7: Optionally, expand Secrets Management to retrieve credentials from a secrets manager.
Step 8: Fill in the Datastores Extraction fields (Database and Schema) and the Datastore Properties.
Step 9: Click Test connection. A success message confirms that the connection has been verified.
Info
The Finish and Next buttons stay disabled until the connection test passes on the current values. If the test fails, see Troubleshooting Common Errors.
Step 10: Click Finish to create the datastore.
Tip
To link an enrichment datastore so Qualytics can store anomalies and metadata from the first operation, click Next instead of Finish. It has to live on a connector other than TimescaleDB; see Link Enrichment on Datastore Creation.
Step 11: A success dialog confirms that your datastore has been added. Click Go to your datastore to open its page.
Step 1: Navigate to the Source Datastores page.
Step 2: Click the Add Source Datastore button at the top-right corner.
Step 3: The Add Datastore page opens.
Step 4: Select Existing Connection next to the Search field.
Step 5: Select the saved TimescaleDB connection from the grid. Use the search field to filter connections by name. The Connection Properties and Secrets Management sections come already filled in and read-only.
Start a new connection from this one
To use the selected connection as a starting point for a brand-new connection instead, click the Duplicate as a new connection button on the selected connection. The form switches to New Connection mode with the connection's settings already filled in for you to adjust.
Step 6: Fill in the Datastores Extraction fields (Database and Schema) and the Datastore Properties. These are the only fields left to fill in.
Step 7: Click Test connection. A success message confirms that the connection has been verified.
Info
The Finish and Next buttons stay disabled until the connection test passes on the current values. If the test fails, see Troubleshooting Common Errors.
Step 8: Click Finish to create the datastore.
Tip
To link an enrichment datastore so Qualytics can store anomalies and metadata from the first operation, click Next instead of Finish. It has to live on a connector other than TimescaleDB; see Link Enrichment on Datastore Creation.
Step 9: A success dialog confirms that your datastore has been added. Click Go to your datastore to open its page.
API Payload Examples
Creating a Source Datastore
This section provides a sample payload for creating a TimescaleDB datastore. Replace the placeholder values with actual data relevant to your setup.
Endpoint (Post): /api/datastores (post)
{
"name": "your_datastore_name",
"teams": ["Public"],
"database": "timescale_database",
"schema": "timescale_schema",
"enrichment_only": false,
"trigger_sync": true,
"connection": {
"name": "your_connection_name",
"type": "timescale",
"host": "timescale_host",
"port": 5432,
"username": "timescale_username",
"password": "timescale_password"
}
}
# Step 1: Create a Connection
qualytics connections create \
--type timescale \
--name "your_connection_name" \
--host ${TIMESCALE_HOST} \
--port 5432 \
--username ${TIMESCALE_USER} \
--password ${TIMESCALE_PASSWORD}
# Step 2: Create a Source Datastore
qualytics datastores create \
--name "your_datastore_name" \
--connection-name "your_connection_name" \
--database your_database \
--schema public
Link an Enrichment Datastore to a Source Datastore
Endpoint Details: /api/datastores/{datastore-id}/enrichment/{enrichment-id} (patch)