Re: should we enable log_checkpoints out of the box?

From: Jan Wieck <jan(at)wi3ck(dot)info>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Michael Banck <michael(dot)banck(at)credativ(dot)de>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Andres Freund <andres(at)anarazel(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: should we enable log_checkpoints out of the box?
Date: 2021-11-05 15:36:31
Message-ID: bb9c7a0a-014a-9acf-d556-2167eec86a25@wi3ck.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/5/21 10:50, Alvaro Herrera wrote:
> On 2021-Nov-05, Michael Banck wrote:
>
>> Well that, and the fact those distinctions are only done for user-
>> facing events, whereas it seems to me we only distinguish between LOG
>> and PANIC for server-facing events; maybe we need one or more
>> additional levels here in order to make it easier for admins to see the
>> really bad things that are happening?
>
> I think what we need is an orthogonal classification. "This FATAL here
> is routine; that ERROR there denotes a severe problem in the underlying
> OS". Additional levels won't help with that. Maybe adding the concept
> of "severity" or "criticality" to some messages would be useful to
> decide what to keep and what to discard.
>

That would go a long way. I would add a third classification that is
"area", indicating if this is for example resource or application logic
related. An FK violation is app-logic, running checkpoints too often is
a resource problem. Allow the DBA to create some filter based on
combinations of them and it should work well enough.

Regards, Jan Wieck

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2021-11-05 15:37:22 Re: [PATCH] rename column if exists
Previous Message Bruce Momjian 2021-11-05 15:26:22 Re: should we enable log_checkpoints out of the box?