Skip to content

Conversation

@ThomWright
Copy link
Contributor

@ThomWright ThomWright commented May 16, 2025

This change makes Postgres use the unnamed statement when preparing statements and persistent = false.

This means Postgres will automatically close the prepared statement when another query is run – as per the docs – avoiding a memory leak.

Does your PR solve an issue?

fixes #3850

Is this a breaking change?

No.

it fixes a bug, and makes it behave as documented.

This will automatically close the prepared statement when
another query is run, avoiding a memory leak.
@abonander abonander merged commit d335f78 into launchbadge:main May 19, 2025
84 checks passed
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.

Non-persistent prepared statements not closed in PostgreSQL

2 participants