jackc / jackc/pgx

[q] custom cancellation func

Open
#679 25 comments 9 reactions 0 assignees View on GitHub
question
Dominant language
Go
Stars
14.3k
Forks
1.1k
Avg merge
6d 9h
Merged PRs (30d)
11

Description

Hi! I was migrating to pgx/v4 while I noticed that `pgx.ConnConfig.CustomCancel` hook is no more. How do I set up a custom cancel func with v4?
I'd like to disable cancellation signaling completely since it may kill wrong query when using pgBouncer.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by reviewing pgx/v4 cancellation configuration and how pgBouncer affects cancellation signaling; determine whether disabling or customizing the behavior can be supported safely, then document or test the resulting configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.