PostgreSQL
How to set up PostgreSQL Destination
Prerequisites
The database must be running version 9.3 or higher.
Whitelist Gravity IP addresses
Only support direct connection (your database must be publicly accessible.)
Steps
Create a PostgreSQL gravity user
If you haven’t already, connect to your PostgreSQL instance using your SQL client.
After connecting, run this command to create a user named gravity. Replace with a secure password:
Next, you’ll assign the CREATE permissions to the gravity user. For <database_name>, enter the name of the database where all gravity-replicated data should be loaded. Note: This must be a pre-existing database.
If you restricted access to the system tables, you’ll also need to run the following commands to grant the gravity user SELECT permissions.
Create PostgreSQL Destination in Gravity
Log in to your Gravity and click on Destinations, Choose PostgreSQL
Insert Server, Database, and Port details
Insert DB user and DB password details
Check the Require TLS checkbox. Note: The database must support and allow SSL/TLS connections for this setting to work correctly.
Click Save, Test, and Publish
Test checks connectivity to PostgreSQL and permission to create schemas and tables on your PostgreSQL database.
Last updated