Help Center/ Data Replication Service/ Troubleshooting/ Solutions to Failed Check Items/ Database Parameters/ Checking Whether session_replication_role of the Destination Database Is correctly Set
Updated on 2024-11-30 GMT+08:00

Checking Whether session_replication_role of the Destination Database Is correctly Set

During PostgreSQL synchronization, the session_replication_role parameter of the destination database is not set to replica. Data synchronization may fail when the synchronized table has associated foreign key constraints or triggers.

Failure Cause

The session_replication_role parameter of the destination database is not set to replica.

Handling Suggestion

Before starting the synchronization task, set session_replication_role of the destination database to replica. After the synchronization is complete, change the value of this parameter to origin.