Postgres
An overview of the Postgres integration with Seda
Get Started with Postgres
There are three steps to connect Postgres with Postgres:
Create a database user
Connect Postgres to Seda
Whitelist Seda IP Address
Create a Database User
The username and password you’ve already created for your cluster is your admin password, which you should keep for your own usage. For Seda, and any other 3rd-parties, it is best to create distinct users.
To create a new user, you’ll need to log into the Postgres database directly and run the following SQL commands:
-- Create a user named "secoda" that Secoda will use when connecting to your Postgres database.
CREATE USER secoda PASSWORD '<enter password here>';
-- Complete this query for any databases you would like Secoda to extract from
GRANT CONNECT ON DATABASE <database_name> TO secoda;
-- Complete this query for any schemas you would like Secoda to extract from
GRANT USAGE ON SCHEMA <schema_name> TO secoda;
GRANT SELECT ON ALL TABLES IN SCHEMA <schema_name> TO secoda;
ALTER DEFAULT PRIVILEGES IN SCHEMA <schema_name>
GRANT SELECT ON TABLES TO secoda;
When connecting to Postgres in Seda, use the username/password you’ve created here instead of your admin account.
Connect Postgres to Seda
After creating a Postgres user, the next step is to connect Seda:
In the Seda App, select ‘Add Integration’ on the Integrations tab
Search for and select ‘Postgres’
Enter your Postgres credentials
Click 'Connect'
Security
VPCs keep servers inaccessible to traffic from the internet. With VPC, you’re able to designate specific web servers access to your servers. In this case, you will be whitelisting the Seda IPs to read from your data warehouse.
Allow Seda to read into your Postgres database using the Seda IP address.
Last updated