Transaction logs or Write-Ahead Logging (WAL) is replayed from the source to the dSource to ensure data synchronization between the two.
The architectural setup involves the following steps:
-
Ensure that the end-user application connecting to the PostgreSQL connector source database can perform both the read/write queries on the database.
-
Understand that the database changes are recorded as WAL segments in the PostgreSQL connector database under the directory pg_xlog or pg_wal.
-
Configure the source PostgreSQL connector server as a Standby Node.
-
Configure replication security by creating a replication user and specifying the authentication protocol.
-
Initiate a base backup on the standby environment.
-
Configure
postgresql.conffile as per the source environment. -
Start the standby server.