pgwire

Module pg_protocol

source

Modules§

Structs§

  • At present there is a hard-wired set of parameters for which ParameterStatus will be generated: they are:
  • The state machine for each psql connection. Read pg messages from tcp stream and write results back.
  • Wraps a byte stream and read/write pg messages.
  • Configures TLS encryption for connections.

Enums§

  • The logic of Conn is very simple, just a static dispatcher for TcpStream: Unencrypted or Ssl: Encrypted.
  • PgProtocolState πŸ”’
    States flow happened from top to down.

Statics§

  • The current session. Concrete type is erased for different session implementations.
  • Truncates query log if it’s longer than RW_QUERY_LOG_TRUNCATE_LEN, to avoid log file being too large.

Functions§