From 7e121e9606c6e0af824d0be6323eb700914c0f52 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Wed, 26 Jun 2024 08:38:38 +0200 Subject: [PATCH] do not try to set commit_delay --- src/postgres.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/postgres.rs b/src/postgres.rs index 718c1c0..de8fc1a 100644 --- a/src/postgres.rs +++ b/src/postgres.rs @@ -199,11 +199,8 @@ impl PostgresSession { .execute("SET synchronous_commit TO 'off'", &[]) .await .unwrap(); - self.client - .execute("SET commit_delay TO 1000", &[]) - .await - .unwrap(); - info!("Configured synchronous_commit and commit_delay"); + // note: commit_delay can be changed but requires superuser + info!("Configured synchronous_commit"); } pub async fn drop_temp_table(&self, table: String) -> anyhow::Result<()> {