Re: ERROR: failed to add item to the index page

From: Andres Freund <andres(at)anarazel(dot)de>
To: Andreas Joseph Krogh <andreas(at)visena(dot)com>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: ERROR: failed to add item to the index page
Date: 2019-04-30 18:59:43
Message-ID: 20190430185943.sxtzjv3df45usprj@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2019-04-30 20:54:45 +0200, Andreas Joseph Krogh wrote:
> På tirsdag 30. april 2019 kl. 19:58:31, skrev Peter Geoghegan <pg(at)bowt(dot)ie
> <mailto:pg(at)bowt(dot)ie>>: On Tue, Apr 30, 2019 at 9:59 AM Peter Geoghegan
> <pg(at)bowt(dot)ie> wrote:
> > I'll start investigating the problem right away.
>
> I have found what the problem is. I simply neglected to make a
> conservative assumption about suffix truncation needing to add a heap
> TID to a leaf page's new high key in nbtsort.c (following commit
> dd299df8189), even though I didn't make the same mistake in
> nbtsplitloc.c. Not sure how I managed to make such a basic error.
>
> Andreas' test case works fine with the attached patch. I won't push a
> fix for this today.
>
> --
> Peter Geoghegan Nice, thanks! --
> Andreas Joseph Krogh

Andreas, unfortunately your emails are pretty unreadable. Check the
quoted email, and the web archive:

https://www.postgresql.org/message-id/VisenaEmail.41.51d7719d814a1f54.16a6f98a5e9%40tc7-visena

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2019-04-30 19:03:08 Re: REINDEX INDEX results in a crash for an index of pg_class since 9.6
Previous Message Peter Geoghegan 2019-04-30 18:55:28 Re: Re: ERROR: failed to add item to the index page