Re: old_snapshot_threshold's interaction with hash index
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Kevin Grittner <kgrittn@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Bruce Momjian <bruce@momjian.us>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2016-05-06T05:45:25Z
Lists: 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
Commits
-
Avoid catalog lookups in RelationAllowsEarlyPruning().
- eeb68c1cddf3 10.11 landed
- b9c4ccfefca0 11.6 landed
- 8cc6016a8cd4 12.0 landed
- 720b59b55b84 13.0 landed