Skip to content

Setting PGOPTIONS when connecting (environment variable / connection parameter) #1482

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

Closed
cjnqt opened this issue Oct 27, 2017 · 1 comment
Closed

Comments

@cjnqt
Copy link

cjnqt commented Oct 27, 2017

The documentation says
node-postgres uses the same environment variables as libpq to connect to a PostgreSQL server

Libpq supports setting PGOPTIONS on the connection, but it seems that node-postgres doesn't? Is there any way to specify PGOPTIONS (these: https://www.postgresql.org/docs/9.1/static/libpq-envars.html)

@langpavel
Copy link
Contributor

PGOPTIONS is used only by psql command, not by libpq itself, so documentation here is correct.
Documentation at postgres pages lies 😅
I searched source codes of postgres

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

No branches or pull requests

2 participants