Skip to main content

Module wire

Module wire 

Source
Expand description

PostgreSQL Wire Protocol Messages

Implementation of the PostgreSQL Frontend/Backend Protocol. Reference: https://www.postgresql.org/docs/current/protocol-message-formats.html

Split into sub-modules:

  • types — message enums, structs, and error types
  • frontendFrontendMessage encoder (client → server)
  • backendBackendMessage decoder (server → client)

Structs§

ErrorFields
Error fields from ErrorResponse
FieldDescription
Field description in RowDescription

Enums§

BackendMessage
Backend (server → client) message types
FrontendEncodeError
FrontendMessage
Frontend (client → server) message types
TransactionStatus
Transaction status

Constants§

PROTOCOL_VERSION_3_0
PostgreSQL protocol 3.0 (legacy baseline).
PROTOCOL_VERSION_3_2
PostgreSQL protocol 3.2 (new default request).