IPC:SyncRep

This event occurs when a transaction has completed locally and is waiting for confirmation from a remote standby server before it can return "Success" to the client.

PostgreSQL "Synchronous Replication" is technically Asynchronous Replication + A Wait. The database does not "write successfully to both places at the exact same instant." Instead,
it writes locally, streams the data asynchronously to the standby, and then pauses the user session (generating this wait event) until the standby sends a "Thumbs Up" acknowledgment.

Why it is happening (Root Causes)

Additional References