Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change PG and CRDB datastore drivers to use PGX cancelation #2294

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

josephschorr
Copy link
Member

This should (in most cases) allow the connection to be reused when the parent context is canceled, instead of our current behavior of severing the context and allowing the query to finish processing. Severing was initially done because the default behavior in PGX is to close the connection, which added overhead on other requests

This should (in most cases) allow the connection to be reused when the parent context is canceled, instead of our current behavior of severing the context and allowing the query to finish processing. Severing was initially done because the default behavior in PGX is to *close* the connection, which added overhead on other requests
@github-actions github-actions bot added the area/datastore Affects the storage system label Mar 27, 2025
Since locks are per connection/session, the connection used by GC must be the same one
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant