| From: | Fujii Masao <fujii(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix twophase recovery log matching with verbose logs |
| Date: | 2026-10-30 01:19:09 |
| Message-ID: | E1xMbGv-00000001KQ9-00zz@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)sss(dot)pgh(dot)pa(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Guo | 2026-10-30 01:51:36 | pgsql: Fix nestloop parameter assignment for PHVs evaluated above outer |
| Previous Message | Tom Lane | 2026-10-29 21:46:30 | pgsql: Fix poorly-formatted comment. |