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

feat: recommend to terminate over cancelling blocking queries #31

Merged
merged 1 commit into from
May 21, 2024

Conversation

dcupif
Copy link
Contributor

@dcupif dcupif commented May 21, 2024

This MR updates our "LongRunningQueries" runbook to suggest using pg_terminate_backend over pg_cancel_backend. The reason is that cancelling a query though being the most graceful way will not always work which can be confusing for people following the runbook in duty.

Using pg_terminate_backend is more consistent and still is a safe approach to killing PG processes as it merely sends a SIGTERM signal to the backend process.

@dcupif dcupif self-assigned this May 21, 2024
@dcupif
Copy link
Contributor Author

dcupif commented May 21, 2024

#sre-storage

Copy link
Contributor

@qfritz qfritz left a comment

Choose a reason for hiding this comment

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

lgtm

@dcupif dcupif merged commit 40d5fba into main May 21, 2024
5 checks passed
@dcupif dcupif deleted the suggest-investigating-db-locks branch May 21, 2024 10:24
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.

2 participants