sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.47k stars 716 forks source link

Support for libpq-standard PG env-vars #723

Closed ddevienne closed 3 months ago

ddevienne commented 3 months ago

I used service and password files, and sometimes other env-vars as well. to connection to PostgreSQL (v12, v14, v16).

Which work fine for my own native exes (since libpq-based, C++) and also with psql.

pgweb looks really interesting to me, but having to use different CLI args or env-vars to connect, would be inconvenient.

So does pgweb support libpq-standard env-vars? And if not, any chance it might in the future?

Thanks, --DD

PS: Since pgweb is no-dependencies, I assume it uses a Go-native client implementation instead of libpq.

sosedoff commented 3 months ago

Pgweb does not aim to support native Postgres configuration values, and it uses the native Go package for interactions with Postgresql (there may be some overlap in env var names, but it minimal).

Please refer to https://github.com/sosedoff/pgweb/wiki/Usage for configuration options (or pgweb --help)

ddevienne commented 3 months ago

Bummer. OK, thanks.