PostgreSQL is a powerful open-source relational database management system known for its robustness and extensibility.


How do I activate this integration?


First Step

Log in to your Onvo account, go to the Integrations page, and click on Connect next to the PostgreSQL Database card.


Second Step

You will then be shown a configuration modal where you can enter the PostgreSQL credentials and click on Connect PostgreSQL DB.


Third Step

Head over to the Data sources page and click on New data source.


Fourth Step

Fill in a name for the data source, an optional description, and choose PostgreSQL as the type. Then click on Connect.


Fifth Step

In the page that appears, fill in the SQL query and click on Save changes. You should now see your data descriptions and sample data appear.


What can I do with this integration?

You can pull in data from multiple tables/databases as data sources on Onvo to build your dashboards and reports. Any datasource using the PostgreSQL integration will be kept in sync with the underlying data to keep your dashboards live.

You can create beautiful, interactive dashboards using your PostgreSQL data. Just ask for the kind of visualization you want in natural language to create a widget on the dashboard. You can also ask for data pre-processing before visualization. We also allow for questions in natural language to your data on PostgreSQL.

Once you are happy with your dashboard, you can integrate them into your products with the SDK.

How do I create a dashboard using multiple tables?

On Onvo, you can do this in two ways:

  1. You can write an SQL query with a join on a single datasource so that the datasource has all the relevant data to begin with.
  2. You can optionally create 2 separate data sources and make sure you mention the field used to correlate the data in the "fields" tab. This will enable the AI to write the necessary code to join the data without having to write complicated join queries.

Config parameters


Database server address (e.g., "localhost" or "").


Port number for connecting to the PostgreSQL database server (e.g., "5432").


Database username for authentication (e.g., "myuser").


Password for connecting to the PostgreSQL database server.


Name of the target database (e.g., "mydatabase").


SQL query to execute on the PostgreSQL database. Example: "SELECT * FROM mytable WHERE column = 'value'".

Security considerations

It is recommended to set up a separate user on your PostgreSQL database with just read access to the tables you require for your dashboard. In addition, if possible, restrict the incoming IP addresses to the database.

If you do restrict access by IP addresses, make sure to whitelist for Onvo AI to access your database.