Re: Auto Vacuum optimisation

From: wenhui qiu <qiuwenhuifx(at)gmail(dot)com>
To: Japin Li <japinli(at)hotmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Frédéric Yhuel <frederic(dot)yhuel(at)dalibo(dot)com>
Subject: Re: Auto Vacuum optimisation
Date: 2024-11-28 06:25:23
Message-ID: CAGjGUAJQe2Vhdxq8AeOD0DnoNca6y7n6dpFgVfsRpFt+dys3BA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Japin
> Worth a try.
> However, I don't think we need to based on {vac,anl}_scale_factor when
using
> the sqrt algorithm.
Here a new path, I removed the log2 algorithm and the debug2 log and the
enumeration type is also kept consistent, based on {vac,anl}_scale_factor
when using the sqrt algorithm ,The main purpose is also to give DBAs the
flexibility to make small adjustments,Mainly referencing another discussion
as well, trying to stay in line with them

On Thu, Nov 28, 2024 at 1:46 PM Japin Li <japinli(at)hotmail(dot)com> wrote:

> On Wed, 27 Nov 2024 at 15:51, wenhui qiu <qiuwenhuifx(at)gmail(dot)com> wrote:
> > HI Japin Li
> > Thank you for you reply, Do you think that removing the log2
> algorithm because it will be more frequent,I think sql
> > server chose sqrt algorithm after their long-term verification, I think
> we need to retain sqrt algorithm,The relevant
> > documents are here(
> >
> https://learn.microsoft.com/en-us/sql/relational-databases/statistics/statistics?view=sql-server-ver16),I
> will provide a
> > new patch later with your reply
> >
>
> Worth a try.
>
> However, I don't think we need to based on {vac,anl}_scale_factor when
> using
> the sqrt algorithm.
>
> --
> Regrads,
> Japin Li
>

Attachment Content-Type Size
0002-Add-guc-to-optimize-the-autovacuum-tigger-algorithm.patch application/octet-stream 4.9 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2024-11-28 06:34:55 Re: More CppAsString2() in psql's describe.c
Previous Message Sutou Kouhei 2024-11-28 06:16:17 Re: Make COPY format extendable: Extract COPY TO format implementations