This topic describes how to add an RDS for PostgreSQL data source in DataV.
Prerequisites
The RDS for PostgreSQL data source must be ready before you add it.
You must first add the whitelist IP address of the corresponding area to your data source whitelist to ensure that DataV-Board can access your database normally. For more information, see configure database whitelist.
Limits
Supports only DataV Enterprise Edition or higher.
Add data source through intranet
Access the DataV console.
On the Workbench page, click in the left-side navigation pane to access the Data Source page, and then click Create Data Source.
From the Type list, select RDS for PostgreSQL.
Select Intranet and choose the region where the RDS instance is located.
Select the network type for the intranet database, which includes Virtual Private Cloud (VPC) and Classic Network.
Virtual Private Cloud (VPC)
Activate the VPC switch to enter VPC mode.

Enter the database information.
NoteTo create a new database, see Create a Database.
Parameter
Description
Name
The name of the data source. You can specify a custom name.
VPC ID
The ID of the VPC-connected instance, which is the VPC where your RDS for PostgreSQL instance is located. You can obtain it from the RDS Management Console under Instance List Basic Information Network Type.

Instance ID
The ID of the database instance under the VPC. You can obtain it from the RDS Management Console on the instance basic information page.
NoteUsually, you can directly view the VPC-connected instance ID of the database instance in the console of the database product. However, due to the implementation mechanism of the VPC network, sometimes the instance ID displayed in the console is not the instance ID required by the DataV data source config VPC network. Therefore, you need to obtain the VPC-connected instance ID required by DataV through the OPEN API of the database product, which is usually the VpcCloudInstanceId or VpcInstanceId in the database instance details. For the specific database product interface to obtain the VPC-connected instance ID, see Query Instance Details.
Domain Name
The connection address of the database.
ImportantThis address is the domain name or IP address that the DataV server can access your database through the public network or the intranet of some Alibaba Cloud regions.
For example, when using Alibaba Cloud RDS for PostgreSQL in an intranet environment, the domain name example is: pgm-bpxxxxxxxxxxxxxx15970.pg.rds.aliyuncs.com, which can be obtained from the RDS Management Console on the instance basic information page.
Port
The port set by the database.
Username
The username that is used to log on to the database.
Password
The password that is used to log on to the database.
Database
The name of the currently selected database.
After entering the database information, the system will automatically test the connection to ensure it is functioning correctly.
Classic Network
Deactivate the VPC switch to enter Classic Network mode.
Enter the database information.
NoteTo create a new database, see Create a Database.
Parameter
Description
Name
The name of the data source. You can specify a custom name.
Domain Name
The connection address of the database.
ImportantThis address is the domain name or IP address that the DataV server can access your database through the public network or the intranet of some Alibaba Cloud regions.
For example, when using Alibaba Cloud RDS for PostgreSQL in an intranet environment, the domain name example is: pgm-bpxxxxxxxxxxxxxx15970.pg.rds.aliyuncs.com, which can be obtained from the RDS Management Console on the instance basic information page.
Port
The port set by the database.
Username
The username that is used to log on to the database.
Password
The password that is used to log on to the database.
Database
The name of the currently selected database.
After entering the database information, the system will automatically test the connection to ensure it is functioning correctly.
Once the connection test is successful, click OK to finalize the data source addition.
Upon completion, the data source will appear in the data source list automatically.
Add data source through the internet
Access the DataV console.
On the Workbench page, click in the left-side navigation pane to access the Data Source page, and then click Create Data Source.
From the Type list, select RDS for PostgreSQL.
Select Internet from the list.
For internet address settings, see Set Connection Address.
Enter the database information.

Parameter
Description
Name
The name of the data source. You can specify a custom name.
Domain Name
The connection address of the database.
ImportantThis address is the domain name or IP address that the DataV server can access your database through the public network or the intranet of some Alibaba Cloud regions.
For example, when using Alibaba Cloud RDS for PostgreSQL in an internet environment, the domain name example is: pgm-bpxxxxxxxxxxxxxxqo.pg.rds.aliyuncs.com, which can be obtained from the RDS Management Console on the instance basic information page.
Port
The port set by the database.
Username
The username that is used to log on to the database.
Password
The password that is used to log on to the database.
Database
The name of the currently selected database.
After entering the database information, the system will automatically test the connection to ensure it is functioning correctly.
Once the connection test is successful, click OK to finalize the data source addition.
The new data source will be automatically listed in the data source list.
What to do next
Once you have the raw data, you can refer to widget data source configuration for widget data adaptation.
FAQ
For more information, see Data Source FAQ.