pgx.Conn: Fix memory leak: Delete items from preparedStatements
Previously, items were never removed from the preparedStatements map. This means workloads that send a large number of unique queries could run out of memory. Delete items from the map when sending the deallocate command to Postgres. Add a test to verify this works. Fixes https://github.com/jackc/pgx/issues/1456
This commit is contained in:
committed by
Jack Christensen
parent
eab316e200
commit
0292edecb0
Reference in New Issue
Block a user