A test app to demonstrate a memory leak / surprising unlimited caching.
Postgres
13.5 or newer- Update
.env
- Create the table
test_table
with one column with the typebytea
cargo run (-r)
- Open a system process monitor and notice memory usage of the process
sqlx-memory-debug
- Press
ctrl+c
to close the pool - Notice memory usage again
- Press
ctrl+c
again to stop the program