Skip to content
Discussion options

You must be logged in to vote

Hi @joekrall!

The node-postgres (pg) driver, which powers the new Rust-free Prisma ORM, does not implement the same semantics for sslmode=prefer as the libpq (PostgreSQL native) client. In node-postgres, sslmode=prefer is effectively treated as sslmode=require, meaning it will attempt an SSL connection and fail if the server does not support SSL, rather than falling back to a non-SSL connection. See this comment on a related issue.

The error you encountered is likely a result of the pg driver not falling back to a non-SSL connection when the server requires SSL, and the connection string does not explicitly set sslmode to require or no-verify.

The Rust-based Prisma engine (used before the…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by joekrall
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants