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§
- Connection
Counter - Connection
Handle - Handle to an open connection, allows us to maintain a count of all connections.
- Cursor
- Decodes data within pgwire messages.
- Error
Response - User
Metadata - Metadata about a user that is required to allocate a
ConnectionHandle
.
Enums§
- Codec
Error - Conn
- Connection
Error - Decode
State - Format
- The encoding format for a
mz_pgrepr::Value
. - Frontend
Message - A decoded frontend pgwire message, representing instructions for the backend.
- Frontend
Startup Message - 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§
Functions§
- decode_
startup - input_
err - Constructs an error indicating that the client has violated the pgwire protocol.
- parse_
frame_ len