From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Limit max parameter number with MaxAllocSize
Date: Tue, 02 Jul 2024 07:38:10 +0000
Message-ID: <E1sOY5Y-0000Q2-Sg@gemulon.postgresql.org> (raw)
Limit max parameter number with MaxAllocSize
MaxAllocSize puts an upper bound on the largest possible parameter
number ($268435455). Use that limit instead of INT_MAX to report that
no parameters exist beyond that point instead of reporting an error
about the maximum allocation size being exceeded.
Author: Erik Wienhold <ewie@ewie.name>
Discussion: https://www.postgresql.org/message-id/flat/5d216d1c-91f6-4cbe-95e2-b4cbd930520c@ewie.name
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9c2e660b07fc16bdd79c25047cce6cde2acb3f37
Modified Files
--------------
src/backend/parser/parse_param.c | 3 ++-
src/test/regress/expected/prepare.out | 5 +++++
src/test/regress/sql/prepare.sql | 3 +++
3 files changed, 10 insertions(+), 1 deletion(-)
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: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Limit max parameter number with MaxAllocSize
In-Reply-To: <E1sOY5Y-0000Q2-Sg@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox