Connecting to PostgreSQL

Note: This topic describes how to import data using the online Sisense Web Application. To import data through the desktop ElastiCube Manager, click here.

The ElastiCube Manager enables easy and quick access to databases, tables and views contained within PostgreSQL databases. The steps below describe how to connect to this type of data source.

To import data from PostgreSQL:

  1. In the Data page of ElastiCube Manager, open an ElastiCube or create a new ElastiCube.
  2. In the ElastiCube, click . The Add Data dialog box is displayed.
  3. Click PostgreSQLto open the PostGreSQL settings.
  4. Enter the following details:
  5. (Optional) Select Encrypt Connection to configure the driver to encrypt all communication with the PostgreSQL instance before sending it over the network, and then select Trust Server Certificate.
  6. Click . A list of tables in the database are displayed. All tables and views associated with the database will appear in a new window.
  7. From the Tables list, select the relevant table or view you want to work with. You can click next to the relevant table or view to see a preview of the data inside it. When you select the table or view, two new options are displayed at the bottom of the list, Import Relationships and Add Custom Import SQL.

  8. (Optional) By default, existing relationships between tables are automatically replicated in the ElastiCube. You can disable this by toggling the Import Relationships switch.

  9. (Optional) Click + to customize the data you want to import with SQL. See Importing Data with Custom Queries for more information.

  10. After you have selected all the relevant tables, click Done. The tables are added to your schema in the ElastiCube Manager.

Note: The default connection timeout limit is 30 seconds to PostgreSQL data sources. You can modify this limit by editing the Sisense.Connectors.PostgreSqlConnector.dll.config located at ...\Program Files\Sisense\DataConnectors\DotNetContainer\Connectors\PostgreSql.In the configuration file, under the section PostgreSettings, set the value of the parameter Timeout to change the connection timeout limit. This is useful in cases where you receive a TimeOut exception when trying to connect.