agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix PQdescribePrepared with more than 7498 params
Date: Mon, 15 Jun 2026 09:01:26 +0000
Message-ID: <E1wZ3CA-000OiK-0l@gemulon.postgresql.org> (raw)

Fix PQdescribePrepared with more than 7498 params

If a query has more than 7498 params, the ParameterDescription message
exceeds the 30000 byte limit on messages that are not specifically
marked as possibly being longer than that (VALID_LONG_MESSAGE_TYPE).
To fix, add ParameterDescription to the list.

Author: Ning Sun <classicning@gmail.com>
Discussion: https://www.postgresql.org/message-id/dbfb4b65-0aa8-470a-8b87-b6496160b28a@gmail.com
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e0511883cae27ec70834c52bbde1863aa11d81e1

Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1wZ3CA-000OiK-0l@gemulon.postgresql.org>
Permalink:  ../E1wZ3CA-000OiK-0l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wZ3CA-000OiK-0l@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix PQdescribePrepared with more than 7498 params
  In-Reply-To: <E1wZ3CA-000OiK-0l@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox