This topic describes how to create a Tencent Cloud PostgreSQL data source.
Prerequisites
You have created a Tencent Cloud PostgreSQL database.
You have the username and password for your Tencent Cloud PostgreSQL database.
Limitations
This data source supports PostgreSQL 8.2 and later.
Procedure
Add IP addresses to the allowlist.
To connect to Tencent Cloud PostgreSQL, add the IP addresses of Quick BI to the allowlist of your Tencent Cloud PostgreSQL instance. For more information, see Manage security groups.
Verify the connection and create the data source.
Log on to the Quick BI console.
To add the data source:
Go to the Create Data Source page.
On the Tencent Cloud databases tab, select TencentDB for PostgreSQL.

In the Configure connection dialog box, set the following parameters.

Parameter
Description
Display name
The display name for the data source.
The name must not contain special characters or leading or trailing spaces.
Database address and Port
The public endpoint of your PostgreSQL database. To obtain the endpoint, log on to the Tencent Cloud PostgreSQL console, enable the public endpoint for the instance, and then view the endpoint in the Basic Information section of the instance details page.
Database
The name of the target database.
Schema
The name of the database schema.
Username and Password
The credentials for accessing the PostgreSQL database.
SSL
If your data source is SSL-enabled, select this option to encrypt the connection and protect data in transit.
Initial SQL
When enabled, this option allows you to specify SQL statements that run each time a connection is established.
Only
SETstatements are allowed. Use a semicolon (;) to separate multiple statements.Enable uploading files
Allows you to upload files.
Click Test connection to verify the connection.

After a successful connection test, click OK to create the data source.
Next steps
After creating the data source, you can create a dataset to start analyzing your data.
To add a table from your PostgreSQL database or use custom SQL to create a dataset in Quick BI, see Create a dataset.
To add visual charts and analyze data, see Create a dashboard and Overview of visual charts.
To drill down and perform in-depth data analysis, see Step 3: Configure and display drill down settings.