Crunchy Bridge comes with logical replication enabled by default. Ensure that the settings below are configured correctly. If not, adjust them accordingly.
Connect to your Crunchy Bridge Postgres through the postgres
user and run the below commands:
Create a Postgres user exclusively for PeerDB.
Grant read-only access to the schema from which you are replicating tables to peerdb_user
. Below example shows granting permissions for the public
schema. If you want to grant access to multiple schemas, you can run these three commands for each schema.
Grant replication access to this user:
Create publication that you’ll be using for creating the MIRROR (replication) in future.
The PeerDB user must not be restricted by RLS policies, as it can lead to missing data. You can disable RLS policies for the user by running the below command:
If you are using PeerDB Cloud safelist the public IPs of your PeerDB Cloud instance by adding the Firewall Rules in Crunchy Bridge.
Where to find Firewall Rules in Crunchy Bridge?
Add the 3 Firewall Rules for PeerDB Cloud
Through the PeerDB UI, create the Crunchy Bridge Postgres Peer using the peerdb_user
that you created in the previous step.
Create peer drop down
Create Crunchy Bridge Peer
Crunchy Bridge comes with logical replication enabled by default. Ensure that the settings below are configured correctly. If not, adjust them accordingly.
Connect to your Crunchy Bridge Postgres through the postgres
user and run the below commands:
Create a Postgres user exclusively for PeerDB.
Grant read-only access to the schema from which you are replicating tables to peerdb_user
. Below example shows granting permissions for the public
schema. If you want to grant access to multiple schemas, you can run these three commands for each schema.
Grant replication access to this user:
Create publication that you’ll be using for creating the MIRROR (replication) in future.
The PeerDB user must not be restricted by RLS policies, as it can lead to missing data. You can disable RLS policies for the user by running the below command:
If you are using PeerDB Cloud safelist the public IPs of your PeerDB Cloud instance by adding the Firewall Rules in Crunchy Bridge.
Where to find Firewall Rules in Crunchy Bridge?
Add the 3 Firewall Rules for PeerDB Cloud
Through the PeerDB UI, create the Crunchy Bridge Postgres Peer using the peerdb_user
that you created in the previous step.
Create peer drop down
Create Crunchy Bridge Peer