Re: Add log_autovacuum_{vacuum|analyze}_min_duration

From: kasaharatt <kasaharatt(at)oss(dot)nttdata(dot)com>
To: Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>
Cc: Sami Imseih <samimseih(at)gmail(dot)com>, wenhui qiu <qiuwenhuifx(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Michael Banck <mbanck(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add log_autovacuum_{vacuum|analyze}_min_duration
Date: 2025-08-13 08:44:06
Message-ID: 76b9eb1c4ad4297e3ede7d3be8659f5c@oss.nttdata.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

2025-07-02 15:37 に Shinya Kato wrote:
> On Mon, Jun 23, 2025 at 4:24 PM Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>
> wrote:
>>
>> On Wed, Jun 11, 2025 at 1:49 PM Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>
>> wrote:
>>>
>>> On Thu, Jun 5, 2025 at 3:53 AM Sami Imseih <samimseih(at)gmail(dot)com>
>>> wrote:
>>>>
>>>> > Approach 2:
>>>> > - log_autovacuum_min_duration: Changed behavior, which controls only
>>>> > autovacuum logging.
>>>> > - log_autoanalyze_min_duration: New parameter, which controls
>>>> > autoanalyze logging.
>>>>
>>>> My vote is for this approach. It is probably OK to change the
>>>> behavior of
>>>> log_autovacuum_min_duration, as the new GUC will have the same
>>>> default
>>>> value.
>>>
>>>
>>> Thank you for voting. I also think this approach is reasonable to
>>> implement.
>>
>>
>> A new patch is attached.
>> Thoughts?
I reviewed this patch.
I also have no particular objections to the Approach 2.

> + <term><literal>log_autoanalyze_min_duration</literal>,
> <literal>toast.log_autoanalyze_min_duration</literal>(<type>integer</type>)
(snip)
> + "toast.log_autoanalyze_min_duration",
This patch adds the log_autoanalyze_min_duration parameter fot TOAST
tables.
However since PostgreSQL currently does not support ANALYZE on TOAST
tables,
isn't this parameter unnecessary?

Best regards,
--
Kasahara Tatsuhito
NTT DATA Japan Corporation

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shinya Kato 2025-08-13 08:52:45 Re: Improve tab completion for various SET/RESET forms
Previous Message Chao Li 2025-08-13 08:08:45 Re: GB18030-2022 Support in PostgreSQL