Skip to content

Conversation

@conradludgate
Copy link

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant