Skip to main content

Crate mz_pgwire

Crate mz_pgwire 

Source
Expand description

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§

fuzz_exports
Internal types re-exported under cfg(feature = "fuzzing") so the fuzz crate can drive the frontend-message decoder directly. Not for production use.

Structs§

Config
Configures a Server.
MetricsConfig
Server
A server that communicates with clients via the pgwire protocol.

Functions§

match_handshake
Reports whether the given stream begins with a pgwire handshake.