Closed ddevienne closed 1 month ago
The panic error you're seeing is coming from Pgweb's dependency (lib/pq
), you can see this on the line /Users/sosedoff/go/pkg/mod/github.com/lib/pq@v1.10.5/conn.go:1985
. Not much i can do about it.
[...] Not much i can do about it.
Darn, 0 for 2. You could maybe unsetenv and warn; or test and fail gracefully perhaps, before lib/pq panics.
I just wasn't expecting Go-native PostgreSQL support to be kinda hostile to native libpq users (which includes psql
of course).
Anyways, thanks for your time. Work-around exists, end user can unsetenv herself, it's just not beginner friendly, that's my point.
A little harsh, and not the best first impression for new users. Having LIBPQ standard env-var should be a pretty common occurrence for users of PostgreSQL. Perhaps just a warning that this env-var is ignored and go on would be better, no? Also, there are 30+ env-vars used by LIBPQ (and new releases add some once in a while), so why single out that one?
Thanks, --DD