Repository navigation
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
I searched the Supabase documentation and existing GitHub issues. The closest existing report is supabase/supavisor#1061, with fixes merged in supabase/supavisor#1079 and the follow-up supabase/supavisor#1176.
Describe the bug
The hosted Supabase transaction pooler on port 6543 still reproduced the dropped-reply/hanging-client behavior described in supabase/supavisor#1061.
A postgres.js 3.4.7 client using prepare: false and max_pipeline: 1 sent another extended-query batch before receiving ReadyForQuery for the preceding batch. In the captured failing run, the frontend sent 11 Parse/Describe sequences, but only 10 corresponding ParseComplete/ParameterDescription replies returned. The outstanding postgres.js promise then waited indefinitely.
This appears consistent with the backend being released after an earlier ReadyForQuery while replies from a later pipelined batch are still outstanding—the behavior addressed by supabase/supavisor#1079 and supabase/supavisor#1176.
This affected ordinary read-only application queries. Prepared statements were disabled.
To Reproduce
Client shape:
import postgres from 'postgres'
const sql = postgres(process.env.DATABASE_URL, {
max: 1,
prepare: false,
ssl: 'require',
max_pipeline: 1,
})
// Six independent read-only SELECTs are started concurrently by one loader.
await Promise.all([read1(sql), read2(sql), read3(sql), read4(sql), read5(sql), read6(sql)])- Use the hosted transaction-pooler connection string on port 6543.
- Run six distinct unprepared read-only queries concurrently on one postgres.js connection.
- Repeat the loader call. Our incident harness used 20 uncached calls with a 12-second deadline.
- Trace frontend Parse/Describe/Sync and backend ParseComplete/ParameterDescription/ReadyForQuery messages.
- With
max_pipeline: 1, we captured a missing reply and a permanently unresolved client promise.
Our public application workaround and regression harness are in alanxchen85/gradschooldb#1581:
- PR: https://github.com/alanxchen85/gradschooldb/pull/1581
- Live hosted-pooler trace gate: https://github.com/alanxchen85/gradschooldb/blob/e167349d51bb53390d457393e712cfe273580775/tests/regression/pooler/live/transaction-fanout.repro.ts
- Gate documentation: https://github.com/alanxchen85/gradschooldb/blob/e167349d51bb53390d457393e712cfe273580775/tests/regression/pooler/README.md
The deterministic local gate has a max_pipeline: 1 canary that strands and records the dropped frame. The hosted acceptance gate verifies the workaround at client pool sizes 1 and 5.
Expected behavior
The hosted transaction pooler should retain the backend until every expected ReadyForQuery has arrived and return every reply to the client. Concurrent ordinary queries should either complete or fail explicitly; they should not leave a postgres.js promise unresolved.
Screenshots
Not applicable. The useful evidence is the PostgreSQL protocol trace and the linked executable regression harness.
System information
- Client OS: macOS
- Deployment environment affected: Vercel Linux functions/builds
- Client library: postgres.js 3.4.7
- Node.js: 22.22.3
- Supabase connection: hosted shared transaction pooler, port 6543
- Client options:
prepare: false, TLS required
Additional context
Our current client-side workaround disables postgres.js pipelining with max_pipeline: 0. Because postgres.js 3.4.7 does not run the sql.begin() reservation hook correctly at that limit, our application also carries a small ordering patch. With that workaround:
- pool size 1: 20 loader calls x 6 queries = 120/120 completed
- pool size 5: 20 loader calls x 6 queries = 120/120 completed
- zero hangs, zero dropped replies, balanced protocol counters
- p95 below 3 seconds in both hosted-pooler acceptance runs
We are not proposing that client patch as the Supabase fix. We would like to establish whether the hosted service has received the existing Supavisor fixes.
Could Supabase confirm:
- Which Supavisor version is currently deployed to hosted shared transaction poolers?
- Does the hosted deployment include fix: wait for all DB replies before releasing backend supavisor#1079 and fix: remove stale Sync handler supavisor#1176?
- If not, what is the rollout timeline?
- If those fixes are already deployed, what additional tenant/region and packet-trace information should we provide privately to support?
We can share the affected project and region privately with Supabase staff, but have intentionally omitted tenant identifiers and connection details from this public report.
Activity
rileymahoney95 commentedon Oct 5, 2026
Adding a production data point from the hosted shared pooler (
aws-1-us-east-1, transaction mode, port 6543). It shows the non-pipelined, split-Sync shape that supabase/supavisor#1205 describes.Setup: Next.js 16 on Vercel (Fluid compute), Drizzle ORM over postgres.js 3.4.8,
prepare: false, poolmax: 10, Postgres 17.6.With
prepare: false, postgres.js sends every parameterized query asParse + Describe + Flush(no Sync). It waits forParameterDescription, then sendsBind + Execute + Syncin a second write. About 3 times a week, a trivial indexed lookup (max 1.7 ms over ~54k calls) fails after the 2-minute globalstatement_timeout. The Postgres log row each time:There are 3 occurrences in the last 8 days (2026-10-02 15:38:54Z, 2026-10-02 18:42:25Z, 2026-10-05 10:47:57Z), each a different short-lived read.
What the logs show:
Parse/Describeand never received the follow-upBind/Execute/Sync, so its statement timer ran from Parse until the timeout. Nothing else errored in the window: no26000or08P01on any backend, which suggests the second write never reached Postgres.57014itself was relayed back to the originating client. Our app logged the failed render 41 ms after the Postgres log line. So the client was still mapped to that backend; theParameterDescriptionreply or the client's second write was lost in between.26000,08P01,25001,25P01or25P03errors.This looks like the Sync-sent-separately case in supabase/supavisor#1205 (and possibly #1176). Discussion #33530 reports the same
PARSE+Supavisorsignature. The latest tagged Supavisor release is v2.9.12 (2026-08-25), which predates both fixes.Same question as the original report: could Supabase confirm whether the hosted shared transaction pooler in us-east-1 (
aws-1) is running #1176 and #1205, and if not, the rollout timeline? Happy to share the project ref, backend session IDs, query IDs and exact timestamps privately with support.