]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix PQdescribePrepared with more than 7498 params
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 15 Jun 2026 08:28:45 +0000 (11:28 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 15 Jun 2026 08:35:41 +0000 (11:35 +0300)
commite4183c667d86c365c3e93e2f687d416e375aeb8a
treeb94a6edeb44758529f8008b8c45e291daa7c1740
parent3928b7a520e3f2ffec26d644d60a467ac7558578
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
src/interfaces/libpq/fe-protocol3.c