PgSql: Use clean recycling method on connection pool

This commit is contained in:
mdecimus
2026-02-25 14:07:07 +01:00
parent 3840a4e28c
commit 620ab2a9bc

View File

@@ -42,7 +42,7 @@ impl PostgresStore {
.unwrap_or_default();
cfg.options = config.value((&prefix, "options")).map(|s| s.to_string());
cfg.manager = Some(ManagerConfig {
recycling_method: RecyclingMethod::Fast,
recycling_method: RecyclingMethod::Clean,
});
if let Some(max_conn) = config.property::<usize>((&prefix, "pool.max-connections")) {
cfg.pool = PoolConfig::new(max_conn).into();