proxy: update tokio-postgres to allow arbitrary config params (#8076)

## Problem

Fixes https://github.com/neondatabase/neon/issues/1287

## Summary of changes

tokio-postgres now supports arbitrary server params through the
`param(key, value)` method. Some keys are special so we explicitly
filter them out.
This commit is contained in:
Conrad Ludgate
2024-06-24 11:20:27 +01:00
committed by GitHub
parent 75747cdbff
commit 78d9059fc7
6 changed files with 119 additions and 92 deletions

View File

@@ -202,6 +202,7 @@ fn get_conn_info(
options = Some(NeonOptions::parse_options_raw(&value));
}
}
ctx.set_db_options(params.freeze());
let user_info = ComputeUserInfo {
endpoint,