This topic describes how to use Quick BI to connect to AnalyticDB for PostgreSQL.
Procedure
Log on to the Quick BI console.
In the top navigation bar, click Workbench.
In the left-side My Workspaces section, click the workspace that you want to manage.
NoteIf no workspace exists, you must create a workspace. For more information, see Create and manage a workspace.
In the left-side navigation pane, choose .
Click Create Data Source.
In the Select Data Source step, click Alibaba AnalyticDB for PostgreSQL.
In the Configure Connection step, configure the parameters that are described in the following table.
NoteIf you use Quick BI to connect to a database over the Internet, you must add the CIDR blocks of Quick BI to a whitelist of the database instance to ensure network connectivity.
To obtain the CIDR blocks of Quick BI, click Copy Whitelist in the Configure Connection step of the Quick BI console.
Parameter
Description
Name
The name of the data source.
Database Address
The endpoint that is used to connect to the AnalyticDB for PostgreSQL database.
Port Number
The port number that is used to connect to the AnalyticDB for PostgreSQL database.
Database
The name of the AnalyticDB for PostgreSQL database.
Schema
The name of the database schema.
Username
The database account that is used to connect to the AnalyticDB for PostgreSQL database.
Password
The password that is used to connect to the AnalyticDB for PostgreSQL database.
NoteFor more information, see Add an AnalyticDB for PostgreSQL data source.
Click Test Connection to test whether a connection can be established to the data source. After the connection test passes, click OK.
NoteIf the connection test failed, check whether all parameters are correctly configured. After you confirm that the parameters are correctly configured, test the connection again.