From: vlsi (@vlsi) <noreply+vlsi@github.com>
To: pgjdbc/pgjdbc <noreply+pgjdbc-pgjdbc@github.com>
Subject: Re: [pgjdbc/pgjdbc] PR #4332: fix: limit FINEST Bind, Parse and SimpleQuery log messages to maxLogMessageLength to avoid OOM
Date: Wed, 14 Oct 2026 06:22:27 +0000
Message-ID: <gh-pgjdbc-pgjdbc-4332-rc4267444450@github.com> (raw)
In-Reply-To: <gh-pgjdbc-pgjdbc-4332@github.com>
References: <gh-pgjdbc-pgjdbc-4332@github.com>
(on pgjdbc/src/test/java/org/postgresql/util/internal/LogMessageUtilsTest.java)
The three limits are independent cases, and the first failure hides the other two. Please make this a `@ParameterizedTest` over `(limit, expected)`, named after the outcome, for example `aLimitNoLongerThanTheSuffixKeepsOnlyAPrefixOfTheSuffix`.