Re: Log details for stats dropped more than once

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Log details for stats dropped more than once
Дата
Msg-id ZkRMcfaEesMz5MSr@paquier.xyz
обсуждение исходный текст
Ответ на Log details for stats dropped more than once  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Ответы Re: Log details for stats dropped more than once  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
On Tue, May 14, 2024 at 10:07:14AM +0000, Bertrand Drouvot wrote:
> While resuming the work on refilenode stats (mentioned in [1] but did not share
> the patch yet), I realized that my current POC patch is buggy enough to produce
> things like:
>
> 024-05-14 09:51:14.783 UTC [1788714] FATAL:  can only drop stats once
>
> While the CONTEXT provides the list of dropped stats:
>
> 2024-05-14 09:51:14.783 UTC [1788714] CONTEXT:  WAL redo at 0/D75F478 for Transaction/ABORT: 2024-05-14
09:51:14.782223+00;dropped stats: 2/16384/27512/0 2/16384/27515/0 2/16384/27516/0 

Can refcount be useful to know in this errcontext?

> Attached a tiny patch to report the stat that generates the error. The patch uses
> errdetail_internal() as the extra details don't seem to be useful to average
> users.

I think that's fine.  Overall that looks like useful information for
debugging, so no objections from here.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Fixup a few 2023 copyright years
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: pg_trgm comparison bug on cross-architecture replication due to different char implementation