Re: old_snapshot_threshold's interaction with hash index - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: old_snapshot_threshold's interaction with hash index
Date
Msg-id CAA4eK1+SqDVt2TRnAWYRZHwUj_ksXr1z61xLA3OFmd76jzYb2w@mail.gmail.com
Whole thread Raw
In response to Re: old_snapshot_threshold's interaction with hash index  (Kevin Grittner <kgrittn@gmail.com>)
Responses Re: old_snapshot_threshold's interaction with hash index
List pgsql-hackers
On Wed, May 4, 2016 at 7:48 PM, Kevin Grittner <kgrittn@gmail.com> wrote:
>
> On Tue, May 3, 2016 at 11:48 AM, Robert Haas <robertmhaas@gmail.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

pgsql-hackers by date:

Previous
From: Piotr Stefaniak
Date:
Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
Next
From: Jeff Janes
Date:
Subject: Re: Initial release notes created for 9.6