PostgreSQL
ToolJet has the capability to connect to PostgreSQL databases for data retrieval and modification.
Establishing a Connection
To establish a connection with the PostgreSQL data source, you can either click on the + Add new Data source button located on the query panel or navigate to the Data Sources page from the ToolJet dashboard and choose PostgreSQL as the data source.
ToolJet offers two connection types to connect to your PostgreSQL database:
Manual Connection
To connect to PostgreSQL using Manual connection parameters, select Manual connection as the connection type and provide the following details:
- Host
- Port
- SSL
- Database Name
- Username
- Password
- Connection Options
- SSL Certificate

Connection String
To connect to PostgreSQL using a connection string, select Connection String as the connection type and provide the following details:
- Connection String

Note: We recommend creating a new PostgreSQL database user to have control over ToolJet's access levels.
Please make sure the Host/IP of the database is accessible from your VPC if you have self-hosted ToolJet. If you are using ToolJet cloud, please whitelist our IP.
Querying in SQL Mode
- Create a new query and select the PostgreSQL data source.
- Select the SQL query mode from the dropdown and enter the query.
- Click on the Preview button to preview the output or Click on the Run button to trigger the query.
