Re: Add ParameterDescription message to libpq frontend long message types

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Ning Sun <classicning(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add ParameterDescription message to libpq frontend long message types
Date: 2026-06-15 09:01:36
Message-ID: ae5c3da5-be35-4ede-a6e3-abf51fc9f00b@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 01/04/2026 09:32, Ning Sun wrote:
> 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.

Committed and backpatched to all supported versions, thanks!

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message shveta malik 2026-06-15 09:02:09 Re: Proposal: Conflict log history table for Logical Replication
Previous Message Álvaro Rodríguez 2026-06-15 09:00:40 Re: Improving psql autocompletion for SET LOCAL / SET SESSION