agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix log_statement_max_length test with verbose logs
Date: Fri, 03 Jul 2026 05:43:04 +0000
Message-ID: <E1wfWg5-0018vI-0b@gemulon.postgresql.org> (raw)

Fix log_statement_max_length test with verbose logs

Buildfarm member prion reported a failure in the test added by commit
c8bd8387c27 to verify that the server logs an empty statement body
when log_statement_max_length = 0.

The test assumed that "statement:" would appear immediately after
"LOG:" in the logged statement message. However, prion runs with
log_error_verbosity = verbose, which inserts the SQLSTATE between
"LOG:" and the message text. As a result, the test failed even though
the server behaved correctly.

Per buildfarm member prion.

Discussion: https://postgr.es/m/CAHGQGwFiQKwvLVG+U0WWNo2kgkQ88FVGhYH_MBZu9Y0SJ8BjDw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9bfbf5bf61901b57d86fab20559b7973b5a83298

Modified Files
--------------
src/test/modules/test_misc/t/014_log_statement_max_length.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1wfWg5-0018vI-0b@gemulon.postgresql.org>
Permalink:  ../E1wfWg5-0018vI-0b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wfWg5-0018vI-0b@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: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix log_statement_max_length test with verbose logs
  In-Reply-To: <E1wfWg5-0018vI-0b@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