Skip to content

[MOVED, NOT FIXED] Upstream reports the fork tracks: each now has its own issue on the Roadmap project #5

Closed

Description

@okomarov

Planned work is on the Roadmap project and in ROADMAP.md, one fork issue per item. This list holds the rest: upstream porsager/postgres reports that @steadybrew/postgresjs does not fix yet and that have no plan yet, grouped by the kind of work a fix needs. Entries with a fork issue link to it. Checked on 2026-10-15 against the current code; items marked unverified have no reproduction yet. Reports the fork already fixes are credited in the changelog and not listed here.

Protocol and result handling bugs

Transactions and leases

Timeouts and bounds

Pooling and poolers

listen and subscribe

Runtimes

Performance and resources

Configuration parsing

Features

Found here, not reported upstream

Activity

  1. changed the title [-]Upstream reports still open after the 4.1.0 lifecycle rework[/-] [+]Upstream reports not yet fixed in the fork[/+] on Oct 9, 2026
  2. okomarov commented on Oct 9, 2026

    @okomarov
    Author

    The Cloudflare entries here (porsager#975, porsager#1196, porsager#1202, porsager#1203, porsager#1213) are part of the deployed-worker test plan in #15. The Deno npm-package reports (porsager#723, porsager#1044, porsager#1083) are covered by #17.

  3. okomarov commented on Oct 9, 2026

    @okomarov
    Author

    porsager#1082 / porsager#729 (listed under "Protocol and result handling bugs") is a wrong-results bug, not only a hang: after the failed query is left in the pipeline, a later query receives another query's response.

    Reproduced against PostgreSQL 17 during the sql.stats() review. It ran on feat/pool-stats, but submit() is identical on main.

    const sql = postgres({ ...opts, max: 1 })
    await sql`select 1`
    
    const a = sql`select pg_sleep(0.2) as a`.execute()
    const b = sql.unsafe('select 1', Array(70000).fill(1)).execute()
    
    await new Promise(r => setTimeout(r, 500))
    const c = sql`select 2 as c`.execute()
    1. a rejects with MAX_PARAMETERS_EXCEEDED, which is b's error.
    2. b hangs; it was never written to the server.
    3. c resolves with [] instead of [{ c: 2 }]: it got the response meant for another query. Only then does b fail, with ERR_OUT_OF_RANGE.

    Cause: submit() in src/connection.js puts the query in query/sent before build()/toBuffer() run. When either throws, the catch calls errored(error), which rejects the active query instead of the failing one, and the failing query stays in sent as if it had been written. From then on, responses are matched to the wrong queries.

    This should come first in the correctness batch, independent of the dispatch policy in #18.

    Tracked in #20.

    The #20 review found two related paths where a connection accepts queries mid-exchange (a retry and COPY). Tracked in #21; possibly also porsager#1234.

  4. changed the title [-]Upstream reports not yet fixed in the fork[/-] [+]Upstream Postgres.js reports: what the fork has and hasn't fixed[/+] on Oct 15, 2026
  5. changed the title [-]Upstream Postgres.js reports: what the fork has and hasn't fixed[/-] [+]Upstream Postgres.js reports tracked by the fork[/+] on Oct 15, 2026
  6. okomarov commented on Oct 16, 2026

    @okomarov
    Author

    Every report listed here now has its own issue, labelled by area and kind and placed on the Roadmap project, so this list is no longer kept up to date. Issues answering upstream reports carry the upstream label: open ones. Fixed reports are in the README and the changelog.

  7. changed the title [-]Upstream Postgres.js reports tracked by the fork[/-] [+][MOVED, NOT FIXED] Upstream reports the fork tracks: each now has its own issue on the Roadmap project[/+] on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions