Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support options/PGOPTIONS connection parameter/environment variable #2214

Closed
rafiss opened this issue May 13, 2020 · 1 comment · Fixed by #2216
Closed

Support options/PGOPTIONS connection parameter/environment variable #2214

rafiss opened this issue May 13, 2020 · 1 comment · Fixed by #2216

Comments

@rafiss
Copy link
Contributor

rafiss commented May 13, 2020

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')

@brianc
Copy link
Owner

brianc commented May 13, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants