PostgreSQL
This guide provides step-by-step instructions for connecting PostgreSQL to Unistream.
Prerequisites
You will need:
Access to your PostgreSQL instance
Superuser privileges to create a new user (or existing user credentials)
Host address and port number
Unistream platform credentials
Step 1: Configure Access in PostgreSQL
Before connecting to Unistream, you need to create a dedicated user in PostgreSQL and grant appropriate permissions.
1.1 Create User
Connect to your PostgreSQL instance (using psql, pgAdmin, or another tool) and run the following commands:
-- Create a new user with password
CREATE USER <username> WITH PASSWORD '<password>';Replace:
<username>with your desired username<password>with a secure password
1.2 Grant Permissions
Choose the appropriate permission level based on your needs:
Option A: Grant Access to Entire Database
Replace:
<database>with your database name<schema>with your schema name (typicallypublic)
Option B: Grant Access to Specific Tables
Replace:
<database>with your database name<schema>with your schema name<table1>,<table2>, etc. with your table names
Option C: Grant Access to Specific Columns
Replace:
<database>with your database name<schema>with your schema name<table>with your table name<column1>,<column2>, etc. with your column names
1.3 Example: Complete Setup
Here's a complete example for a database named salesdb:
Step 2: Connect to Unistream
2.1 Add PostgreSQL Source
In Unistream, navigate to Lake
Click Add Source
Select PostgreSQL
2.2 Configure Connection
Fill in the General Fields:
Name: Enter a descriptive name for your connection (e.g., "Production PostgreSQL")
Code: Enter a unique code identifier (e.g., "prod_postgres")
Fill in the Connection Details:
Host: Your PostgreSQL server address
Port: PostgreSQL port (default:
5432)Username: The username you created in Step 1 (e.g.,
unistream_user)Password: The password you set in Step 1
(Optional) Database: The name of the database you want to connect to (e.g.,
salesdb)
2.3 Test and Save
Click Test Connection to verify the connection is working
If the connection is successful, you'll see a success message
Click Add to save your connection
Need Help?
If you encounter any issues not covered in this guide, please contact Unistream support
Last updated

