mirror of
https://github.com/jackc/pgx.git
synced 2025-07-07 19:19:37 +00:00
Per the PG documentation [0], an AuthenticationSASLContinue message has: AuthenticationSASLContinue (B) Byte1('R') Identifies the message as an authentication request. Int32 Length of message contents in bytes, including self. Int32(11) Specifies that this message contains a SASL challenge. Byten SASL data, specific to the SASL mechanism being used. The current implementation was mistakenly adding the lengh of msg bytes in between the Int32(11) and Byten. There was a similar issue for AuthenticationSASLFinal. [0] https://www.postgresql.org/docs/current/protocol-message-formats.html
pgproto3
Package pgproto3 is a encoder and decoder of the PostgreSQL wire protocol version 3.
pgproto3 can be used as a foundation for PostgreSQL drivers, proxies, mock servers, load balancers and more.
See example/pgfortune for a playful example of a fake PostgreSQL server.
Extracted from original implementation in https://github.com/jackc/pgx.
Languages
Go
98.6%
HTML
1.2%
Shell
0.2%