Re: Addition of %b/backend_type in log_line_prefix of TAP test logs

From: Andres Freund <andres(at)anarazel(dot)de>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Daniel Gustafsson <daniel(at)yesql(dot)se>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Addition of %b/backend_type in log_line_prefix of TAP test logs
Date: 2025-06-20 14:21:21
Message-ID: vao2pi7o65ym5i7o46wxq52oug2ftdjfwpjhnphjo6gk5qwqte@izgknxpcewzg
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2025-05-24 09:09:36 +0900, Michael Paquier wrote:
> On Fri, May 23, 2025 at 11:56:59PM +0900, Fujii Masao wrote:
> > On 2025/05/22 8:58, Tom Lane wrote:
> >> Michael Paquier <michael(at)paquier(dot)xyz> writes:
> >>> Another point perhaps worth considering after a second look: how about
> >>> pg_ci_base.conf? We have the following line there, exposing this
> >>> configuration with TEMP_CONFIG:
> >>> src/tools/ci/pg_ci_base.conf:log_line_prefix = '%m [%p][%b] %q[%a][%v:%x] '
> >>
> >>> The two other ones are:
> >>> src/test/perl/PostgreSQL/Test/Cluster.pm: '%m [%p] %q%a '
> >>> src/test/regress/pg_regress.c: '%m %b[%p] %q%a '
> >>
> >>> Perhaps it would be better to apply the same configuration as the CI
> >>> by default at the end?
> >>
> >> I'd vote for standardizing on pg_regress.c's spelling, as that's got
> >> the most usage history behind it. I'm unexcited about bloating the
> >> logs with [%v:%x] --- that's data I've very seldom needed.
> >
> > +1
>
> The %v:%x business in log_line_prefix has been introduced in
> 93d973494613 by Andres. Adding him in CC for comments about the CI
> part.

I'm fine with that.

I'm not a huge fan of "%b" instead of "[%b]", but it doesn't matter much.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Junwang Zhao 2025-06-20 14:40:07 Re: Fixes inconsistent behavior in vacuum when it processes multiple relations
Previous Message Bruce Momjian 2025-06-20 14:14:17 Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments