Skip to content

Conversation

mafredri
Copy link
Member

The previous PR #9777, only fixed part of the issues reported in #9772. We now handle canceled queries as well.

Fixes #9772

@mafredri mafredri self-assigned this Sep 19, 2023
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

I keep forgetting all of these neat helpers exist 👍

@mafredri
Copy link
Member Author

I keep forgetting all of these neat helpers exist 👍

Me too! This particular helper needs a lint TBH, if you're doing a query and only checking context cancellation, that's not enough as long as we use lib/pq 😔.

I think this particular helper may require updates though. There are other forms of query cancellation (like conflict with recovery, etc). I'm not sure whether or not these have the same error code.

@mafredri mafredri merged commit 161a3cf into main Sep 19, 2023
@mafredri mafredri deleted the mafredri/fix-batchstats-error-log-2 branch September 19, 2023 15:16
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test flake: TestTemplateInsights_Golden/multiple_users_and_workspaces
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy