TimescaleDB Permissions¶
Permissions in your TimescaleDB
The permissions on this page are granted in your own TimescaleDB, to the account Qualytics connects with, by whoever administers TimescaleDB at your company. They let Qualytics connect the datastore and read your data. They are not Qualytics roles or team permissions. To know which Qualytics user role (Admin, Manager, or Member) and team permission you need to connect the datastore in Qualytics, see Source Datastore Permissions.
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 |
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.