Overview
This guide walks you through connecting TextQL to your PostgreSQL database. You’ll need connection credentials from your PostgreSQL account to complete the setup.Prerequisites
To connect TextQL with your PostgreSQL database, you will need:- Host URL and Port (default: 5432)
- Username and Password
- Database name (default: postgres)
- Schemas (optional, if you want to specify specific schemas)
Finding Your Connection Details
Connection String Format
Most PostgreSQL providers display the connection string in this format:Example Connection String Breakdown
- Host URL:
db.example.com - Port:
5432 - Username:
username - Password:
pass123 - Database:
mydb
Creating the Connector in TextQL
Step 1: Navigate to Connectors Page
- Go to the TextQL Connectors Page
- Click New Connector
Step 2: Select PostgreSQL
Select Postgres from the available connectors to open the configuration form.Step 3: Enter Connection Details
The form requires the following information:| Field | Description | Example |
|---|---|---|
| Connector Name | A descriptive name to identify this connection | My PostgreSQL Database |
| Host URL | The endpoint URL of your PostgreSQL database | db.example.com |
| Port | The port number for your connection | 5432 |
| Username | Your PostgreSQL username | postgres |
| Password | Your database password | •••••••• |
| Database | The name of the database to connect to | postgres |
| Schemas | (Optional) Specific schemas to include | public, analytics |
Step 4: Test and Create
- Click Test Connection to verify your credentials and network access
- Once the test succeeds, click Create Connector to save the connection
Troubleshooting
Connection Fails
Verify the following:- Connection credentials are correct
- Host URL and port are accurate
- Database name is spelled correctly
- PostgreSQL server is running and accessible
Having trouble connecting? See the Network Configuration Guide for firewall and IP whitelisting setup.
Authentication Errors
Check:- Username and password are correct
- User has appropriate permissions
- Password doesn’t contain special characters that need escaping
Timeout Errors
Possible causes:- Firewall blocking connection
- Incorrect host URL or port
- Database server not responding
- Network connectivity issues
What’s Next
Once your PostgreSQL connector is set up, you can:- Ask Ana natural language questions about your data
- Generate SQL queries and visualizations
- Create reports and dashboards
- Share insights with your team