Skip to content

Fix PostgreSQL memory leak when statement cache is disabled#4337

Open
deathlesz wants to merge 2 commits into
transact-rs:mainfrom
deathlesz:4328-fix-pg-memory-leak
Open

Fix PostgreSQL memory leak when statement cache is disabled#4337
deathlesz wants to merge 2 commits into
transact-rs:mainfrom
deathlesz:4328-fix-pg-memory-leak

Conversation

@deathlesz

Copy link
Copy Markdown

Does your PR solve an issue?

Fixes:

Is this a breaking change?

No, don't think so.

This change only affects the case where the statement cache is disabled. Previously, named prepared statements were created that were never cached or closed, causing them to accumulate on the server. With this fix unnamed statements are used instead, preventing the leak without changing query results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant