Skip to content

feat: release packet size limit for ParameterDescription#418

Merged
sunng87 merged 1 commit intomasterfrom
feat/release-size-limit-for-parameter-description
Mar 25, 2026
Merged

feat: release packet size limit for ParameterDescription#418
sunng87 merged 1 commit intomasterfrom
feat/release-size-limit-for-parameter-description

Conversation

@sunng87
Copy link
Copy Markdown
Owner

@sunng87 sunng87 commented Mar 25, 2026

The libpq client side has a limitation on backend message size for 30000 bytes, with a few exceptions like datarow. This ParameterDescription is not in the whitelist, which means it libpq allows at most ~7500 parameters in the message.

On the backend side, this is no limitation about the packet size. Some of client drivers, according to my test golang's pgx for example, doesn't enforce the limitation either.

So in this patch, I removed the message length limitation for ParameterDescription so we can support more than 7500 parameters in a statement.

@sunng87 sunng87 merged commit 9209532 into master Mar 25, 2026
10 checks passed
@sunng87 sunng87 deleted the feat/release-size-limit-for-parameter-description branch March 25, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant