Skip to content

javascript: Add direct TLS negotiation support to node-postgres sample #171

@danielfrankcom

Description

@danielfrankcom

Is your feature request related to a problem? Please describe.
The node-postgres (pg) module currently doesn't support PostgreSQL 17's direct TLS negotiation feature. This feature improves connection performance and compatibility with certain proxies, but our codebase can't take advantage of it without driver support.

Describe the solution you'd like
One the upstream driver supports the feature, modify the sample to add support for the sslnegotiation connection parameter.

Describe alternatives you've considered

  • Using pg-native with a newer libpq version, but this requires additional platform dependencies and may have performance implications.

Additional context
This feature was originally requested in #150 and has been broken out given many drivers already support this functionality.

Status upstream can be tracked in brianc/node-postgres#3346.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions