Re: old_snapshot_threshold's interaction with hash index

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: old_snapshot_threshold's interaction with hash index
Date: 2016-05-06 05:45:25
Message-ID: CAA4eK1+SqDVt2TRnAWYRZHwUj_ksXr1z61xLA3OFmd76jzYb2w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 4, 2016 at 7:48 PM, Kevin Grittner <kgrittn(at)gmail(dot)com> wrote:
>
> On Tue, May 3, 2016 at 11:48 AM, Robert Haas <robertmhaas(at)gmail(dot)com>
wrote:
>
> > OK, I see now: the basic idea here is that we can't prune based on the
> > newer XID unless the page LSN is guaranteed to advance whenever data
> > is removed. Currently, we attempt to limit bloat in non-unlogged,
> > non-catalog tables. You're saying we can instead attempt to limit
> > bloat only in non-unlogged, non-catalog tables without hash indexes,
> > and that will fix this issue. Am I right?
>
> As a first cut, something like the attached.
>

Patch looks good to me. I have done some testing with hash and btree
indexes and it works as expected.

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2016-05-06 06:51:42 Re: Initial release notes created for 9.6
Previous Message Piotr Stefaniak 2016-05-06 05:38:09 Re: [BUGS] Breakage with VACUUM ANALYSE + partitions