mirror of
https://github.com/jackc/pgx.git
synced 2025-07-07 19:19:37 +00:00
PG provides a maximum size for a StartupMessage: https://doxygen.postgresql.org/pqcomm_8h.html#a4c50c668c551887ac3a49872130349e3 Limiting the size ensures a malicious user doesn't send an overwhelmingly large StartupMessage which could DOS a Go binary that uses pgproto3.
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%