Files
neon/compute_tools/src/pgbouncer.rs
Suhas Thalanki 83069f6ca1 fix: terminate pgbouncer on compute suspend (#12153)
## Problem

PgBouncer does not terminate connections on a suspend:
https://github.com/neondatabase/cloud/issues/16282

## Summary of changes

1. Adds a pid file to store the pid of PgBouncer
2. Terminates connections on a compute suspend

---------

Co-authored-by: Alexey Kondratov <kondratov.aleksey@gmail.com>
2025-06-17 22:56:05 +00:00

2 lines
58 B
Rust

pub const PGBOUNCER_PIDFILE: &str = "/tmp/pgbouncer.pid";