pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Claudio Freire <klaussfreire@gmail.com>
Cc: Pavan Deolasee <pavan.deolasee@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Heap WARM Tuples - Design Draft
Date: Fri, 5 Aug 2016 11:45:16 -0400
Message-ID: <20160805154516.GD5068@momjian.us> (raw)
In-Reply-To: <CAGTBQpYRzJWSynRfSV-00Dmty39R+pCnnyd8_L7zKw411NJOyQ@mail.gmail.com>
References: <CAGTBQpYpu463mQByEp5MLqcdqzOHN1qOBCDN6BRb+ehMF+b=UA@mail.gmail.com>
	<CAGTBQpYsJnfyBhmvDvY9-vWex518=J4V8EfTEHvSC7MNmE=c9A@mail.gmail.com>
	<20160804180746.GT1702@momjian.us>
	<CAGTBQpZkYKO608bJPMgBkr75ujQvZTJxh4DdBXSJHZGSHZPr8g@mail.gmail.com>
	<20160804222148.GA22567@momjian.us>
	<CAGTBQpZPWzfN7roWOr-Li4GoCXnCGYPqbVPmZqJGAgh-qs0mow@mail.gmail.com>
	<20160805021522.GE22567@momjian.us>
	<CAGTBQpZPoHRSZM4MCXRR-BtyWbC2Zwhn_FbYaJYE2boaE7WqaQ@mail.gmail.com>
	<CABOikdPgsknwYcWaPkU6ow5Zz-MZ644n_e-+bnOWqO2poeB2Cw@mail.gmail.com>
	<CAGTBQpYRzJWSynRfSV-00Dmty39R+pCnnyd8_L7zKw411NJOyQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On Fri, Aug  5, 2016 at 12:25:39PM -0300, Claudio Freire wrote:
> > 2. The existence of index pointers to intermediate tuples will lead to index
> > bloat. This is the same problem that we found in Simon's original proposal
> > (discussed internally). None of the intermediate line pointers can be
> > vacuumed until the entire chain becomes DEAD. Event if the a duplicate index
> > key is inserted for every index, knowing that and reclaiming to the index
> > pointers to the original root line pointer, will be difficult.
> 
> I don't see the difference it makes for bloat between storing the root
> tid and the intermediate tid, but I haven't yet figured out how
> vacuuming would work so maybe I have to think about that to realize
> the difference.

Think of page pruning --- we can't remove a ctid that an index points
to.  The more ctids you point to in a HOT chain, the fewer ctids you can
remove --- that's why we want to point only to the head of the HOT/WARM
chain.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (75+ messages)  latest in thread

Message-ID: <20160805154516.GD5068@momjian.us>
Permalink:  ../20160805154516.GD5068@momjian.us/
Also on:    postgresql.org/message-id/20160805154516.GD5068@momjian.us

 · 

reply

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: bruce@momjian.us, klaussfreire@gmail.com, pavan.deolasee@gmail.com
  Subject: Re: Heap WARM Tuples - Design Draft
  In-Reply-To: <20160805154516.GD5068@momjian.us>
  References: <CAGTBQpYpu463mQByEp5MLqcdqzOHN1qOBCDN6BRb+ehMF+b=UA@mail.gmail.com> <CAGTBQpYsJnfyBhmvDvY9-vWex518=J4V8EfTEHvSC7MNmE=c9A@mail.gmail.com> <20160804180746.GT1702@momjian.us> <CAGTBQpZkYKO608bJPMgBkr75ujQvZTJxh4DdBXSJHZGSHZPr8g@mail.gmail.com> <20160804222148.GA22567@momjian.us> <CAGTBQpZPWzfN7roWOr-Li4GoCXnCGYPqbVPmZqJGAgh-qs0mow@mail.gmail.com> <20160805021522.GE22567@momjian.us> <CAGTBQpZPoHRSZM4MCXRR-BtyWbC2Zwhn_FbYaJYE2boaE7WqaQ@mail.gmail.com> <CABOikdPgsknwYcWaPkU6ow5Zz-MZ644n_e-+bnOWqO2poeB2Cw@mail.gmail.com> <CAGTBQpYRzJWSynRfSV-00Dmty39R+pCnnyd8_L7zKw411NJOyQ@mail.gmail.com> <20160805154516.GD5068@momjian.us>

* 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