Hi, I'm maintaining a Rust library pgwire to implement postgres wire protocol in rust. While doing a corner case test, I noticed the inconsistency for ParameterDescription between backend and frontend. The backend allows up to 65535 parameters in a prepared statement. But when running Describe on the statement, there is a size limit of 30000 bytes for ParameterDescription on the frontend. This means we can only describe statements with at most ~7500 parameters. For statements exceed the limit, it ends up with error about the message size. This patch simply adds ParameterDescription to VALID_LONG_MESSAGE_TYPE whitelist to remove the cap.
Hi,
I'm maintaining a Rust library pgwire to implement postgres wire
protocol in rust. While doing a corner case test, I noticed the
inconsistency for ParameterDescription between backend and frontend.
The backend allows up to 65535 parameters in a prepared statement. But
when running Describe on the statement, there is a size limit of 30000
bytes for ParameterDescription on the frontend. This means we can only
describe statements with at most ~7500 parameters. For statements exceed
the limit, it ends up with error about the message size.
This patch simply adds ParameterDescription to VALID_LONG_MESSAGE_TYPE
whitelist to remove the cap.
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера