pub async fn configure_session(client: &PgClient) -> Result<()>Expand description
Settings every pgsync session on the target needs: a fixed search path, durable commits,
and no inherited timeouts. A statement_timeout or idle_in_transaction_session_timeout
set on the target role or database would otherwise cancel long transactions or large
copies on every attempt (SQLSTATE 57014 is retried, so the job would stall, not fail).