Skip to content

Commit 5aa9d45

Browse files
authored
add app name to connections (#97)
1 parent 05e853f commit 5aa9d45

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extension/src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ pub async fn get_pg_conn() -> Result<Pool<Postgres>> {
149149
opts = opts.database(&dbname)
150150
};
151151

152+
opts = opts.application_name("pg-vectorize");
153+
152154
let pgp = PgPoolOptions::new()
153155
.acquire_timeout(std::time::Duration::from_secs(4))
154156
.max_connections(4)

0 commit comments

Comments
 (0)