PostgreSQL Troubleshooting¶
When Test connection or an operation fails on a PostgreSQL datastore, the error message points to the layer that failed: the credentials, the grants, or the connection to the server.
Problems every connector shares
A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to PostgreSQL.
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 PostgreSQL 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> |
permission denied to create table |
The enrichment database user lacks CREATE on the schema |
Run GRANT CREATE ON SCHEMA <schema_name> TO <role> |
Detailed 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
PostgreSQL logs detailed authentication errors in the server log. Check pg_log or log_directory for the exact reason.
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. - 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 PostgreSQL server does not recognize the Qualytics host IP.
Common causes:
- Address not listed: the addresses Qualytics connects from are not in
pg_hba.conf. The banner below the connection form lists them; see Finding the addresses to allow. - 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.