Skip to content

Conversation

@conradludgate
Copy link
Contributor

postgres 17 added support for "sslnegotiation=direct". This allows skipping the ssl negotiation handshake.

https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLNEGOTIATION

The implementation is simple. If sslnegotiation=direct, do not run the ssl negotiation. I have tested this against a known postgres provider that supports this connection mode and it works fine according to my wireshark inspection.

Something to consider: should we return an error if sslnegotiation is not one of "postgres" or "direct"?

@arp242 arp242 force-pushed the conrad/sslnegotiation branch 2 times, most recently from 71218d8 to e19dc9f Compare January 3, 2026 17:59
@arp242 arp242 force-pushed the conrad/sslnegotiation branch from e19dc9f to 8dec2ee Compare January 3, 2026 18:06
@arp242 arp242 merged commit 57f291d into lib:master Jan 3, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants