Connect your Postgres
Setting up the Postgres destination connector involves setting up Postgres entities (user, grants) through Postgres access, and configuring the Postgres destination connector using Whaly UI.
This page describes the step-by-step process of setting up the Postgres destination connector.
Step 1: Create a Whaly read only user in Postgresโ
To set up the Postgres destination connector, you first need to connect to your Postgres server to run some SQL queries.
If you're using a schema other than public
, run this command to grant usage permissions to Whaly:
To make sure that future tables you add to the public schema are also available to the whaly_bi
user, run these commands:
Depending on your setup, the preceding commands may need to be altered. If another user or role is creating tables that the whaly_bi
user needs future permissions for, you must specify a target role or user to apply the whaly_bi
user's permission grants for:
See ALTER DEFAULT PRIVILEGES
on PostgreSQL's website for more information.
Step 2: Set up Postgres as a destination in Whaly
Navigate to the Whaly UI to set up Postgres as a destination. You can authenticate using username/password.
Host
The host IP or URL of your Postgres server. It can be a Read-only replica or a regular Postgres server.
Port
The Port to be used to connect to Postgres. Default is: 5432
Database
The name of the Postgres database to connect to on the server. Default is: postgres
User
The name of the user to use for Whaly BI. Default is: whaly_bi
Password
The password of the user created for Whaly BI
Step 3: Secure the database connection
Please make sure to properly whitelist Whaly IPs.
Last updated