Re: BUG #17197: Assert failed on inserting index tuples after VACUUM

Peter Geoghegan <pg@bowt.ie>

From: Peter Geoghegan <pg@bowt.ie>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-09-23T02:22:15Z
Lists: pgsql-bugs
Hi Alexander,

On Mon, Sep 20, 2021 at 10:00 PM Alexander Lakhin <exclusion@gmail.com> wrote:
> Thanks for the fix!
> But if that is a valid (or sane) state, then shouldn't the comment "Some
> sanity checks" be removed (or updated) too?

I think that that's a good idea. I pushed a commit that updates these
comments just now.

Thanks again
--
Peter Geoghegan



Commits

  1. Document issue with heapam line pointer truncation.

  2. Remove overzealous index deletion assertion.

  3. Truncate line pointer array during VACUUM.

  4. Fix index deletion latestRemovedXid bug.