Skip to content

PGSSLMODE is never read #125

Open
Open

Description

@okomarov

Postgres.js reads PGSSL but not PGSSLMODE, so the README claim that options fall back to the same environment variables as psql does not hold for SSL. Found while fixing #49. Adding it is a feature: decide how PGSSLMODE and PGSSL combine and which wins.

Activity

  1. added
    enhancement
    area: config
    on Oct 16, 2026
  2. moved this to Later in Roadmapon Oct 16, 2026
  3. added
    unverified
    and removed
    unverified
    on Oct 16, 2026
  4. okomarov commented on Oct 18, 2026

    @okomarov
    Author

    Direction for this, recorded with #145: every option that takes a string, number or boolean reads PG<OPTION_NAME>, and libpq's spelling is also accepted where libpq names a setting differently. PGSSLMODE is one of those. When both are set, libpq's name wins, so a psql environment behaves as psql would. What's left to decide here is how PGSSLMODE values map onto ssl (verify-ca has no equivalent today).

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: configenhancement

    Type

    No type

    Projects

    • Status
      Later

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions