pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix twophase recovery log matching with verbose logs
Date: Fri, 30 Oct 2026 01:19:09 +0000
Message-ID: <E1xMbGv-00000001KQ9-00zz@gemulon.postgresql.org> (raw)

Fix twophase recovery log matching with verbose logs

Commit c11eb5de01b added checks for prepared transaction recovery
messages in 009_twophase.pl that assumed no SQLSTATE appeared after
the log severity. With log_error_verbosity=verbose, the SQLSTATE is
included, causing the positive checks to fail and preventing the
negative checks from detecting unwanted LOG messages.

Allow an optional SQLSTATE in all five checks.

Per buildfarm member prion, which uses log_error_verbosity = verbose.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/2256937.1793317544@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/test/recovery/t/009_twophase.pl | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)



Message-ID: <E1xMbGv-00000001KQ9-00zz@gemulon.postgresql.org>
Permalink:  ../E1xMbGv-00000001KQ9-00zz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xMbGv-00000001KQ9-00zz@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Fix twophase recovery log matching with verbose logs
  In-Reply-To: <E1xMbGv-00000001KQ9-00zz@gemulon.postgresql.org>
  References: <E1xMbGv-00000001KQ9-00zz@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