You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postgres.js reads PGSSL but not PGSSLMODE, so the README claim that options fall back to the same environment variables as psql does not hold for SSL. Found while fixing #49. Adding it is a feature: decide how PGSSLMODE and PGSSL combine and which wins.
Direction for this, recorded with #145: every option that takes a string, number or boolean reads PG<OPTION_NAME>, and libpq's spelling is also accepted where libpq names a setting differently. PGSSLMODE is one of those. When both are set, libpq's name wins, so a psql environment behaves as psql would. What's left to decide here is how PGSSLMODE values map onto ssl (verify-ca has no equivalent today).
Activity
okomarov commentedon Oct 18, 2026
Direction for this, recorded with #145: every option that takes a string, number or boolean reads
PG<OPTION_NAME>, and libpq's spelling is also accepted where libpq names a setting differently.PGSSLMODEis one of those. When both are set, libpq's name wins, so a psql environment behaves as psql would. What's left to decide here is howPGSSLMODEvalues map ontossl(verify-cahas no equivalent today).