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') |
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
ConnectionParametersobject. I am happy to create a PR to addrss this issue.node-postgres/packages/pg/lib/connection-parameters.js
Lines 121 to 126 in 70cf4dc