Re: Index Partition Size Double of its Table Partition? - Mailing list pgsql-general

From Peter Geoghegan
Subject Re: Index Partition Size Double of its Table Partition?
Date
Msg-id CAH2-Wzmq+ZLkYFLq-WGJhd=xJ0UosQMuLCMbHXKcKucwsSL=eg@mail.gmail.com
Whole thread Raw
In response to Index Partition Size Double of its Table Partition?  (Don Seiler <don@seiler.us>)
Responses Re: Index Partition Size Double of its Table Partition?
List pgsql-general
On Wed, Oct 30, 2024 at 11:24 AM Don Seiler <don@seiler.us> wrote:
> One thing worth mentioning is that the table is 4 columns, the index is on two of them and includes the other two. I
can'tthink of an explanation for the index being so much larger than its table, especially compared to last month's
index.
>
> Curious if anyone has any thoughts on what might be causing this.

You mentioned that this has 4 columns. Sounds like this could be a
"locally monotonically increasing index". I wonder if you're
benefiting from this optimization, though only inconsistently:

https://www.youtube.com/watch?v=p5RaATILoiE&t=2079s
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=f21668f3

Of course, this is only a guess. I vaguely recall a complaint that
sounded vaguely like yours, also involving partitioning.

--
Peter Geoghegan



pgsql-general by date:

Previous
From: "alexander al (leiden)"
Date:
Subject: What to do with a PAAS-pg server
Next
From: Don Seiler
Date:
Subject: Re: Index Partition Size Double of its Table Partition?