Skip to main content

Crate mz_pgwire_common

Crate mz_pgwire_common 

Source
Expand description

Common PostgreSQL network (“wire”) protocol logic.

Structs§

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

Enums§

ChannelBinding
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
FORWARDED_STARTUP_PARAM_ALLOWANCE
Startup budget allowed on top of MAX_STARTUP_FRAME_SIZE for parameters a balancer appends while forwarding.
MAX_FORWARDED_STARTUP_FRAME_SIZE
Maximum size of a startup frame accepted from a client that may be behind a balancer.
MAX_PREAUTH_FRAME_SIZE
Maximum frame size accepted from a client that has not yet authenticated.
MAX_REQUEST_SIZE
Maximum allowed size for a request.
MAX_STARTUP_FRAME_SIZE
Maximum size of a startup frame accepted directly from a client.
MZ_FORWARDED_FOR_KEY
REJECT_ENCRYPTION
VERSIONS
VERSION_3
VERSION_CANCEL
VERSION_GSSENC
VERSION_SSL

Traits§

Pgbuf

Functions§

decode_startup
Reads and decodes one startup message from the client.
input_err
Constructs an error indicating that the client has violated the pgwire protocol.
parse_frame_len
Parses a frame length header, rejecting frames larger than max_frame_len.