Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
oven-sh
/
bun
Public
Notifications
You must be signed in to change notification settings
Fork
5.1k
Star
96.1k
Code
Issues
3.8k
Pull requests
5k+
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
sql: implement Query.cancel() for postgres
- #33370
#33370
Open
robobun
wants to merge 42 commits into
main
oven-sh/bun:main
from
farm/4be26dfa/postgres-query-cancel
oven-sh/bun:farm/4be26dfa/postgres-query-cancel
Copy head branch name to clipboard
Conversation
Commits
42
(42)
Checks
Files changed
Open
sql: implement Query.cancel() for postgres
#33370
robobun
wants to merge 42 commits into
main
oven-sh/bun:main
from
farm/4be26dfa/postgres-query-cancel
oven-sh/bun:farm/4be26dfa/postgres-query-cancel
Copy head branch name to clipboard
Commits
Commits on Jul 5, 2026
sql: implement Query.cancel() for postgres
Show description for acec2d8
robobun
committed
acec2d8
View commit details
Copy full SHA for acec2d8
Browse repository at this point
sql: only send a postgres CancelRequest for the query the backend is running
Show description for d920eab
robobun
committed
d920eab
View commit details
Copy full SHA for d920eab
Browse repository at this point
sql: release the postgres query's connection edge on the failure paths
Show description for 771c008
robobun
committed
771c008
View commit details
Copy full SHA for 771c008
Browse repository at this point
Commits on Sep 6, 2026
sql: reject a cancelled query when it first runs, not inside cancel()
Show description for 6109374
robobun
committed
6109374
View commit details
Copy full SHA for 6109374
Browse repository at this point
sql: trim the comments on the postgres cancel path
Show description for df87e6e
robobun
committed
df87e6e
View commit details
Copy full SHA for df87e6e
Browse repository at this point
sql: bound the postgres cancel connection's connect attempt too
Show description for 43d3780
robobun
committed
43d3780
View commit details
Copy full SHA for 43d3780
Browse repository at this point
sql: one-line the two comments on the postgres cancel socket
robobun
committed
afef5ca
View commit details
Copy full SHA for afef5ca
Browse repository at this point
sql: move the cancel-before-run tests into their own file
Show description for f119b73
robobun
committed
f119b73
View commit details
Copy full SHA for f119b73
Browse repository at this point
ci: retrigger
robobun
committed
7a18dc7
View commit details
Copy full SHA for 7a18dc7
Browse repository at this point
Merge branch 'main' into farm/4be26dfa/postgres-query-cancel
Show description for d54d683
robobun
committed
d54d683
View commit details
Copy full SHA for d54d683
Browse repository at this point
sql: release the pending-request count when a queued query is cancelled
Show description for 4f1d494
robobun
committed
4f1d494
View commit details
Copy full SHA for 4f1d494
Browse repository at this point
Commits on Sep 24, 2026
Merge branch 'main' into farm/4be26dfa/postgres-query-cancel
robobun
committed
b377317
View commit details
Copy full SHA for b377317
Browse repository at this point
sql: reject a cancelled pipelined query through the in-flight rejection
Show description for 907bd97
robobun
committed
907bd97
View commit details
Copy full SHA for 907bd97
Browse repository at this point
sql: let the query handler reject a query cancelled before it runs
Show description for 60a71df
robobun
committed
60a71df
View commit details
Copy full SHA for 60a71df
Browse repository at this point
sql: shorten the discard_response doc comment
robobun
committed
e72981d
View commit details
Copy full SHA for e72981d
Browse repository at this point
sql: say in the error when a cancelled query still runs on the server
Show description for ae6e96a
robobun
committed
ae6e96a
View commit details
Copy full SHA for ae6e96a
Browse repository at this point
sql: pass the port of the cancel connection as a number
Show description for 74fb430
robobun
committed
74fb430
View commit details
Copy full SHA for 74fb430
Browse repository at this point
Commits on Sep 25, 2026
sql(postgres): move the allocate-and-dial block of createConnection into PostgresSQLConnection::open
Show description for f3d7df8
robobun
committed
f3d7df8
View commit details
Copy full SHA for f3d7df8
Browse repository at this point
Merge branch 'robobun/4be26dfa/postgres-connection-open' into farm/4be26dfa/postgres-query-cancel
robobun
committed
39297bb
View commit details
Copy full SHA for 39297bb
Browse repository at this point
sql(postgres): open the cancel connection from the session, in native code
Show description for 78dcace
robobun
committed
78dcace
View commit details
Copy full SHA for 78dcace
Browse repository at this point
sql: test that a cancel connection never goes out in the clear for a TLS session
robobun
committed
81b6310
View commit details
Copy full SHA for 81b6310
Browse repository at this point
sql: shorten the send_cancel_request doc comment
robobun
committed
ec1eec7
View commit details
Copy full SHA for ec1eec7
Browse repository at this point
Merge branch 'robobun/4be26dfa/postgres-connection-open' into farm/4be26dfa/postgres-query-cancel
robobun
committed
ac3e96d
View commit details
Copy full SHA for ac3e96d
Browse repository at this point
sql(postgres): return the connect error from open and throw it in createConnection
Show description for c0e36e3
robobun
committed
c0e36e3
View commit details
Copy full SHA for c0e36e3
Browse repository at this point
sql: log a cancel connection that cannot be dialed
Show description for 3ccf2df
robobun
committed
3ccf2df
View commit details
Copy full SHA for 3ccf2df
Browse repository at this point
sql(postgres): build the strings of a connection in one constructor
Show description for c2b627f
robobun
committed
c2b627f
View commit details
Copy full SHA for c2b627f
Browse repository at this point
Merge branch 'robobun/4be26dfa/postgres-connection-open' into farm/4be26dfa/postgres-query-cancel
robobun
committed
59d46e3
View commit details
Copy full SHA for 59d46e3
Browse repository at this point
sql(postgres): name the functions that build and store the connection strings
Show description for 998a6fa
robobun
committed
998a6fa
View commit details
Copy full SHA for 998a6fa
Browse repository at this point
sql(postgres): write the terminators of the connection strings
Show description for 819cd9c
robobun
committed
819cd9c
View commit details
Copy full SHA for 819cd9c
Browse repository at this point
Merge branch 'robobun/4be26dfa/postgres-connection-open' into farm/4be26dfa/postgres-query-cancel
robobun
committed
6eb94ff
View commit details
Copy full SHA for 6eb94ff
Browse repository at this point
sql(postgres): let the process exit after a dial that never opens, and keep a statement whose Parse was cancelled
Show description for df941a0
robobun
committed
df941a0
View commit details
Copy full SHA for df941a0
Browse repository at this point
docs(sql): say that a late cancel request can stop the next query
robobun
committed
3b664c6
View commit details
Copy full SHA for 3b664c6
Browse repository at this point
test(sql): check that the cancel connection verifies the host name of the session
Show description for e8b81f9
robobun
committed
e8b81f9
View commit details
Copy full SHA for e8b81f9
Browse repository at this point
Commits on Sep 30, 2026
Merge branch 'main' into farm/4be26dfa/postgres-query-cancel
robobun
committed
358721d
View commit details
Copy full SHA for 358721d
Browse repository at this point
sql(postgres): send no CancelRequest for a query that ended during the dial
Show description for 76a436e
robobun
committed
76a436e
View commit details
Copy full SHA for 76a436e
Browse repository at this point
test(sql): give the pg_sleep poll of the real-server cancel test a deadline
Show description for c55aa7a
robobun
committed
c55aa7a
View commit details
Copy full SHA for c55aa7a
Browse repository at this point
sql(postgres): cancel a query whose session closed, and decide at the end of the TLS handshake
Show description for 950a49c
robobun
committed
950a49c
View commit details
Copy full SHA for 950a49c
Browse repository at this point
Commits on Oct 2, 2026
Merge branch 'main' into farm/4be26dfa/postgres-query-cancel
Show description for 2bd4fe5
robobun
committed
2bd4fe5
View commit details
Copy full SHA for 2bd4fe5
Browse repository at this point
sql(postgres): keep a query off the wire when the code of its parameter cancels it
Show description for a46f129
robobun
committed
a46f129
View commit details
Copy full SHA for a46f129
Browse repository at this point
test(sql): cancel() while only the Parse of a query is on the wire
robobun
committed
3570e33
View commit details
Copy full SHA for 3570e33
Browse repository at this point
sql(postgres): shorten two comments
robobun
committed
e1c5315
View commit details
Copy full SHA for e1c5315
Browse repository at this point
Commits on Oct 3, 2026
test(sql): close the pool of each round of the GC test with its scope
robobun
committed
52e8500
View commit details
Copy full SHA for 52e8500
Browse repository at this point
You can’t perform that action at this time.