Skip to main content

Module client

Module client 

Source
Expand description

Backend PostgreSQL client.

Originates simple-query SQL against a backend node. Frames every message through the existing crate::protocol types so we keep a single wire-protocol implementation in the crate.

The code path here is distinct from ProxyServer::route_and_forward, which forwards client frames. That path remains zero-copy; this path is for internal TR management queries (health check, pg_is_in_recovery(), pg_promote(), WAL-position probes, failover replay, session-state restoration).

Structsยง

BackendClient
An established, authenticated client connection to a backend.
BackendConfig
Backend connection parameters.
ColumnMeta
QueryResult