#1496
[Bug]: failed copying buffer, max size (16777216) reached
Bug Description
Hello!
Working with Postgres resource, we attempted to execute SQL query with ~20MB of data and faced an issue:
⚠️ failed copying buffer, written=0, err=fail to decode typed packet, err=max size (16777216) reachedDespite case may be quite uncommon, we expect to be able to execute same queries via Hoop, as using native psql or IDE interface.
Steps to Reproduce
- Open Postgres connection with
hoop connect - Execute single SQL query larger than 16 MB (e.g. generated
INSERT INTO ...with multiple items) - See an error
Expected Behavior
Would be great to parametrize value, so we could raise the threshold for our setup:
HOOP_PG_PACKET_SIZE_MAX=32MB
Actual Behavior
Seems that we've faced hard-coded limit:
- Defined here: https://github.com/hoophq/hoop/blob/1.64.3/common/pgtypes/const.go#L3
- Takes into action here: https://github.com/hoophq/hoop/blob/1.64.3/common/pgtypes/packet.go#L83-L85
Version
1.64.3
Browser(s)
Other, Firefox
Operating System
Ubuntu 22.04
Screenshots
No response
Additional Context
No response
Relevant Log Output
undefinedCode of Conduct
- I agree to follow this project's Code of Conduct
Activity
2I am investigating some ideas on how to fix this. Thanks for reporting
Quite similar issue, but specific for ClickHouse: #1488