Re: RFC: pg_stat_logmsg

From: Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>
To: Xuneng Zhou <xunengzhou(at)gmail(dot)com>
Cc: Joe Conway <mail(at)joeconway(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>, Gurjeet Singh <gurjeet(at)singh(dot)im>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RFC: pg_stat_logmsg
Date: 2026-04-22 14:21:56
Message-ID: CAFcNs+rpcOp5MRO3+icG+ahFKuybuYytATV5SQS5XpWtRQwiwQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Mar 28, 2026 at 12:15 PM Xuneng Zhou <xunengzhou(at)gmail(dot)com> wrote:
>
> On Sat, Mar 28, 2026 at 10:14 PM Joe Conway <mail(at)joeconway(dot)com> wrote:
>
> > It has not progressed mainly due to lack of time on my part. It is still
> > on my TODO list, and I would like to find time to complete it.
>
> That would be great!
>
> > Personally I would love to see it builtin to core, but an extension
> > would have the advantage of working with prior releases. In any case, if
> > it is in core, or even contrib, now is not the right time as it has zero
> > chance to get in before feature freeze. It would make more sense to
> > discuss this after April.
>
> Yeah, integrating this into core would make it universally accessible,
> while providing it as an extension would allow earlier versions to
> benefit. Certainly, it should be considered for upcoming releases.
>
> > That said, if you wanted to create an extension on github or whatever
> > you can of course determine your own timing.
> >
>
> I'll try to create an extension on github. It would be fun to play
> with and help to learn the new cumulative statistics infra.
>

Here's a WIP extension: https://github.com/fabriziomello/pg_stat_log

Regards,

--
Fabrízio de Royes Mello

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-04-22 15:29:29 Re: Fix memory leak in postmasterMain
Previous Message Melanie Plageman 2026-04-22 14:15:23 Re: Two issues leading to discrepancies in FSM data on the standby server