Skip to content

Support options/PGOPTIONS connection parameter/environment variable #2214

Closed
@rafiss

Description

@rafiss

Postgres describes this parameter here: https://www.postgresql.org/docs/9.1/libpq-connect.html#LIBPQ-CONNECT-OPTIONS. This driver should support passing through the parameter, or reading it from an environment variable.

This was previously requested in this issue: #1482 I believe that issue was closed mistakenly. Here is the Postgres source code that looks at this parameter.

It looks like the fix would be in the ConnectionParameters object. I am happy to create a PR to addrss this issue.

ConnectionParameters.prototype.getLibpqConnectionString = function (cb) {
var params = []
add(params, this, 'user')
add(params, this, 'password')
add(params, this, 'port')
add(params, this, 'application_name')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions