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

Add support for new query cancel functions of PostgreSQL-17 #614

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

larskanis
Copy link
Collaborator

This adds the new class PG::CancelConnection which provides the ability to cancel a query per blocking or per non-blocking functions. If the new functions are available they are used and the older no longer compiled in.

This way we can get rid of reading out the internal PGcancel struct by Connection#backend_key .

@larskanis larskanis force-pushed the cancon branch 4 times, most recently from 2f50f96 to dac71cd Compare November 26, 2024 12:42
This adds the new class `PG::CancelConnection` which provides the ability to cancel a query per blocking or per non-blocking functions.
If the new functions are available they are used and the older no longer compiled in.

This way we can get rid of reading out the internal `PGcancel` struct by `Connection#backend_key` .
used in PG::Connection and PG::CancelConnection
@larskanis larskanis merged commit 36a7b1a into ged:master Nov 26, 2024
16 of 17 checks passed
@larskanis larskanis deleted the cancon branch November 26, 2024 17:11
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