Re: doc: explain pgstatindex fragmentation

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Frédéric Yhuel <frederic(dot)yhuel(at)dalibo(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Benoit Lobréau <benoit(dot)lobreau(at)dalibo(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Subject: Re: doc: explain pgstatindex fragmentation
Date: 2025-01-24 13:34:50
Message-ID: Z5OW+lwNeKHOIa4d@ip-10-97-1-34.eu-west-3.compute.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Fri, Jan 24, 2025 at 12:34:08PM +0100, Frédéric Yhuel wrote:
> I don't know if you noticed Laurenz's suggestion, because he forgot to CC
> you, but I like it very much. I think we should mention the default
> fillfactor (90 for indexes).

Thanks for mentioning Laurenz's suggestion!

=== 1

+ Since indexes have a default fillfactor of 90, this should be around 0.9 for
+ newly built indexes

I think 0.9 should be replaced by 90 (that's the actual kind of output we'd get).

But having said that, I'm not sure we should mention those 90 stuff because it
depends of the amount of data indexed (I mean if the index has a very few
leaf pages, say < 5, then it's easy to be << 90 since it's an average). That's
probably not the majority of indexes though so maybe just nuance the sentence a
bit.

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2025-01-24 13:36:11 Re: SQL Property Graph Queries (SQL/PGQ)
Previous Message Aleksander Alekseev 2025-01-24 13:15:19 Re: Quadratic planning time for ordered paths over partitioned tables