Conversation
As I understand it, protocol 3.2 just adds the longer key length for security? I'm not sure if I follow what you mean with "additional metadata for middleware"? |
Because it is not only for security. As called out in the documentation: So next to the enhanced security, it is also an explicit use case to be able to use this for middleware. This is useful if there's a system with multiple proxies sitting in front of various postgres instances so that proxies can for example route the request then to right proxy if a different proxy received the |
This adds support for the 3.2 protocol version, introduced with PostgreSQL 18. It follows postgres in the sense that the default is still 3.0, but this allows for allocations to allow the 3.2 version of the protocol with longer secret key data. This is to both improve security and to provide room for additional metadata for middleware. Co-authored-by: Martin Tournoij <martin@arp242.net>
This adds support for the 3.2 protocol version, introduced with PostgreSQL 18.
It follows postgres in the sense that the default is still 3.0, but this allows for allocations to allow the 3.2 version of the protocol with longer secret key data.
This is to both improve security and to provide room for additional metadata for middleware.
See also jackc/pgx#2498 for a similar change I submitted there.