Crate mz_pgwire_common

Source
Expand description

Common PostgreSQL network (“wire”) protocol logic.

Modules§

codec 🔒
Encoding/decoding of messages in pgwire. See “Frontend/Backend Protocol: Message Formats” in the PostgreSQL reference for the specification.
conn 🔒
format 🔒
message 🔒
severity 🔒

Structs§

ConnectionCounter
ConnectionHandle
Handle to an open connection, allows us to maintain a count of all connections.
Cursor
Decodes data within pgwire messages.
ErrorResponse
UserMetadata
Metadata about a user that is required to allocate a ConnectionHandle.

Enums§

CodecError
Conn
ConnectionError
DecodeState
Format
The encoding format for a mz_pgrepr::Value.
FrontendMessage
A decoded frontend pgwire message, representing instructions for the backend.
FrontendStartupMessage
Like FrontendMessage, but only the messages that can occur during startup protocol negotiation.
Severity

Constants§

ACCEPT_SSL_ENCRYPTION
CONN_UUID_KEY
MAX_REQUEST_SIZE
Maximum allowed size for a request.
MZ_FORWARDED_FOR_KEY
REJECT_ENCRYPTION
VERSIONS
VERSION_3
VERSION_CANCEL
VERSION_GSSENC
VERSION_SSL

Traits§

Pgbuf

Functions§

decode_startup
input_err
Constructs an error indicating that the client has violated the pgwire protocol.
parse_frame_len