Re: Partial index "microvacuum" - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: Partial index "microvacuum"
Date
Msg-id CAL9smLC=SxYiN7yZ4HDyk0RnZyXoP2vaHD-Vg1JskOEHyhMXug@mail.gmail.com
Whole thread Raw
In response to Re: Partial index "microvacuum"  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: Partial index "microvacuum"
List pgsql-hackers
On Wed, Sep 15, 2021 at 7:25 PM Peter Geoghegan <pg@bowt.ie> wrote:
> What about v14? There were significant changes to the
> microvacuum/index deletion stuff in that release:
>
> https://www.postgresql.org/docs/14/btree-implementation.html#BTREE-DELETION

Huh.  Interesting.  I'm sorry, I wasn't aware of this work and didn't
have version 14 at hand.  But it looks like both the partial index as
well as the secondary index on (id::text) get cleaned up nicely there.
I even tried a version where I have a snapshot open for the entire
run, and the subsequents SELECTs clean the bloat up.  I'll need to
read up on the details a bit to understand exactly what changed, but
it appears that at least this particular pattern has already been
fixed.

Thank you so much for your work on this!


.m



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: Signed vs Unsigned (take 2) (src/backend/storage/ipc/procarray.c)
Next
From: Amit Kapila
Date:
Subject: Re: Logical replication keepalive flood