Crate pgwire[][src]

PostgreSQL network ("wire") protocol.

For brevity, we often refer to the protocol as "pgwire," hence the name of this module. Beware that this name is only commonly used in the CockroachDB and Materialize ecosystems. The PostgreSQL documentation, for example, uses the long-winded "Frontend/Backend Protocol" title instead.

Useful references

Modules

codec

Encoding/decoding of messages in pgwire. See "Frontend/Backend Protocol: Message Formats" in the PostgreSQL reference for the specification.

message
protocol
server

Structs

Config

Configures a Server.

Server

A server that communicates with clients via the pgwire protocol.

TlsConfig

Configures a server's TLS encryption and authentication.

Enums

TlsMode

Specifies how strictly to enforce TLS encryption and authentication.

Functions

match_handshake

Reports whether the given stream begins with a pgwire handshake.