Re: Index Partition Size Double of its Table Partition?

From: Don Seiler <don(at)seiler(dot)us>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Index Partition Size Double of its Table Partition?
Date: 2024-10-30 16:08:27
Message-ID: CAHJZqBDhGmMCTp-7bDXDq4k-b625G0r00VXx1wH0=kLEcetDhQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 30, 2024 at 10:45 AM Peter Geoghegan <pg(at)bowt(dot)ie> wrote:

>
> It sounds like you have no updates and deletes. Right? So the only
> thing that could be different is the way that the pages are being
> split (aside from variations in the width of index tuples, which seems
> highly unlikely to be the only factor).
>

Correct, the table only sees inserts as far as DML goes.

> The heuristics used to trigger the relevant behavior are fairly
> conservative. I wonder if we should be more aggressive about it.
>
> > I should have also included that this is on PG 15 (currently 15.8 but we
> created the indexes when it was still 15.7) on Ubuntu 22.04 LTS.
>
> That shouldn't matter, as far as this theory of mine is concerned.
> Anything after 12 could be affected by the issue I'm thinking of.
>

Why would last month's index be so much smaller?

Both indexes were created using CONCURRENTLY, as each was created during
its month when we started testing. The September index was created toward
the end of the month (Sep 26), whereas the October one was created Oct 1.
Both table partitions are getting regularly autovacuum/autoanalyze work.

Don.
--
Don Seiler
www.seiler.us

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2024-10-30 16:22:37 Re: Index Partition Size Double of its Table Partition?
Previous Message Ron Johnson 2024-10-30 15:49:29 Re: What to do with a PAAS-pg server