Re: REINDEX : new parameter to preserve current average leaf density as new implicit FILLFACTOR

From: John Lumby <johnlumby(at)hotmail(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: REINDEX : new parameter to preserve current average leaf density as new implicit FILLFACTOR
Date: 2019-07-09 22:18:51
Message-ID: DM6PR06MB556298A6BBD28D5047C1D824A3F10@DM6PR06MB5562.namprd06.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> From: Peter Geoghegan <pg(at)bowt(dot)ie>
> Sent: July 9, 2019 5:15 PM
> Subject: Re: REINDEX : new parameter to preserve current average leaf density as new implicit FILLFACTOR
>
> On Tue, Jul 9, 2019 at 12:29 PM John Lumby <johnlumby(at)hotmail(dot)com> wrote:
> > I was not thinking of a new command, just an extension of the existing REINDEX
> > which would apply a fillfactor equal to current average page density,
> > by adding a preliminary step to sample that first.
>
> That would be a very different thing to REINDEX no matter how you
> spelt it, though. REINDEX creates a new index, from scratch, whereas
> you're talking about restructuring what's already there.

No, no, I really am talking about an extension to the *existing* REINDEX,
and yes, yes, my extended REINDEX *would* still; create a new index from scratch.
The *only* difference is that, instead of taking the FILLFACTOR it uses from
whatever is set in the index attributes, it would take it from first calculating
current average page density. and then build a new index with that fillfactor.

>
> Or, it could be that range scan performance benefitted from reduced fragmentation,
>

Yes, I think so.

Cheers, John

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Julie Nishimura 2019-07-09 22:56:53 number of concurrent writes that are allowed for database
Previous Message Peter Geoghegan 2019-07-09 21:15:15 Re: REINDEX : new parameter to preserve current average leaf density as new implicit FILLFACTOR