From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Bruce Momjian <bruce@momjian.us>
To: Pavan Deolasee <pavan.deolasee@gmail.com>
Cc: Claudio Freire <klaussfreire@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Heap WARM Tuples - Design Draft
Date: Tue, 9 Aug 2016 18:19:57 -0500
Message-ID: <3d8ebf8f-f730-a8f9-a9ee-176530132036@BlueTreble.com> (raw)
In-Reply-To: <20160808201907.GF16416@momjian.us>
References: <CAGTBQpaLgi4W4z-eRYPYGC=wnnQBxgN_20i9==4ryNbyR+YHeg@mail.gmail.com>
<20160806010239.GC26927@momjian.us>
<20160806014035.GD26927@momjian.us>
<20160806030433.GE26927@momjian.us>
<CABOikdNUop6sA5M2R3TmOwr7_uH7E1hbEwqeF4tvxUEvYKPtTA@mail.gmail.com>
<20160806145121.GF26927@momjian.us>
<20160807144945.GA22146@momjian.us>
<20160807165501.GA16416@momjian.us>
<20160808173810.GD16416@momjian.us>
<CABOikdOyDsWrOa6rrtETYNrhOZg_EW6sUe6NK-3Ww-PkReDy0g@mail.gmail.com>
<20160808201907.GF16416@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 8/8/16 3:19 PM, Bruce Momjian wrote:
>> What will help, and something I haven't yet applied any thoughts, is when we
>> > can turn WARM chains back to HOT by removing stale index entries.
> I can't see how we can ever do that because we have multiple indexes
> pointing to the chain, and keys that might be duplicated if we switched
> to HOT. Seems only VACUUM can fix that.
Are these changes still predicated on being able to re-find all index
entries by key value? If so, that makes incremental vacuums practical,
perhaps eliminating a lot of these issues.
>>> > > We can't use the bits LP_REDIRECT lp_len because we need to create WARM
>>> > > chains before pruning, and I don't think walking the pre-pruned chain is
>>> > > worth it. (As I understand HOT, LP_REDIRECT is only created during
>>> > > pruning.)
>> >
>> > That's correct. But lp_len provides us some place to stash information from
>> > heap tuples when they are pruned.
> Right. However, I see storing information at prune time as only useful
> if you are willing to scan the chain, and frankly, I have given up on
> chain scanning (with column comparisons) as being too expensive for
> its limited value.
What if some of this work happened asynchronously? I'm thinking
something that runs through shared_buffers in front of bgwriter.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532) mobile: 512-569-9461
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: Jim.Nasby@BlueTreble.com, bruce@momjian.us, pavan.deolasee@gmail.com, klaussfreire@gmail.com
Subject: Re: Heap WARM Tuples - Design Draft
In-Reply-To: <3d8ebf8f-f730-a8f9-a9ee-176530132036@BlueTreble.com>
References: <CAGTBQpaLgi4W4z-eRYPYGC=wnnQBxgN_20i9==4ryNbyR+YHeg@mail.gmail.com> <20160806010239.GC26927@momjian.us> <20160806014035.GD26927@momjian.us> <20160806030433.GE26927@momjian.us> <CABOikdNUop6sA5M2R3TmOwr7_uH7E1hbEwqeF4tvxUEvYKPtTA@mail.gmail.com> <20160806145121.GF26927@momjian.us> <20160807144945.GA22146@momjian.us> <20160807165501.GA16416@momjian.us> <20160808173810.GD16416@momjian.us> <CABOikdOyDsWrOa6rrtETYNrhOZg_EW6sUe6NK-3Ww-PkReDy0g@mail.gmail.com> <20160808201907.GF16416@momjian.us> <3d8ebf8f-f730-a8f9-a9ee-176530132036@BlueTreble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox