Skip to content

PGMAX and ?max= give a pool of one connection #129

Open

Description

@okomarov

Environment and URL values are strings, and max is not in the list of options parsed as integers (ints in src/index.js). PGMAX=4 or ?max=4 sets options.max to "4", and the pool is built with [...Array(options.max)], which for a string is one element: one connection. Same in 3.4.9. Fix: parse max as an integer like the other numeric options. Behaviour change: setups that set PGMAX get the pool size they asked for instead of one connection. Found in the #108 review.

Activity

  1. added
    bug
    area: config
    on Oct 17, 2026
  2. moved this to Later in Roadmapon 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

    area: configbug

    Type

    No type

    Projects

    • Status
      Later

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions