Skip to content

Conversation

@tobyhede
Copy link
Contributor

Update to cipherstash-client 0.31.1

Add close_statement function.

@tobyhede tobyhede force-pushed the cipherstash-client-0.31.1 branch from 9fea460 to 0ee7efd Compare January 10, 2026 08:11
}

pub fn close_statement(&mut self, name: &Name) {
debug!(target: CONTEXT, client_id = self.client_id, statement = ?name);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not actually the cause of the problem, but worth adding anyway.
Without this, named prepared statements are retained indefinitely.

We haven't seen issues with not closing before because:

  • statement collection is bound to the life connection, so cleaned up on the normal pool life cycle
  • most people are not actually using "real" prepared statements

@tobyhede tobyhede merged commit 3683146 into main Jan 10, 2026
5 checks passed
@tobyhede tobyhede deleted the cipherstash-client-0.31.1 branch January 10, 2026 08:28
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.

3 participants