A test app to demonstrate a memory leak / surprising unlimited caching.
Postgres13.5 or newer- Update
.env - Create the table
test_tablewith 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+cto close the pool - Notice memory usage again
- Press
ctrl+cagain to stop the program
