cancel
Showing results for 
Search instead for 
Did you mean: 
nataliia_kh
Sisense Team Member
Sisense Team Member

Resolving DBLink Issues in Sisense for Postgres Connections 

This article addresses the issue of using DBLink with Postgres connections in Sisense. DBLink is a feature in PostgreSQL that allows users to connect and query data across different databases. However, users may encounter limitations when attempting to use DBLink within Sisense's custom import queries. This guide explains the issue and offers a solution to effectively manage data from multiple databases in Sisense. 

Understanding the limitation 

Sisense does not support the use of DBLink in custom import queries. This is due to the inherent design of the Sisense connector, which allows querying only within the selected database upon establishing a connection. 

Implementing a Solution 

To work around this limitation, users need to implement the necessary logic on the database side. This involves creating a view in the database that consolidates the data from the different databases you wish to query Once the view is created, you can import this consolidated data into Sisense as a single dataset. 

Steps to Create a View 

Access your PostgreSQL database where you want to create the view. 

Use SQL to define a view that joins the necessary tables from the different database 

Ensure that the view accurately represents the data you need for your analysis in Sisense. 

Importing the View into Sisense 

In Sisense, connect to your PostgreSQL database. 

Select the newly created view as your data source (using the ‘select * from view_name’ syntax). Proceed with your data analysis using the consolidated data from the view. 

Conclusion 

While Sisense does not support DBLink in custom import queries, users can effectively manage data from multip databases by creating views on the database side. This approach allows you to consolidate and import data into Sisense for comprehensive analysis. By understanding and implementing this workaround, you can continue to leverage the full capabilities of Sisense with your PostgreSQL data.

Rate this article:
Version history
Last update:
‎01-31-2025 12:07 PM
Updated by:
Contributors