Re: Server Crash due to assertion failure in _bt_check_unique()

Peter Geoghegan <pg@bowt.ie>

From: Peter Geoghegan <pg@bowt.ie>
To: Ashutosh Sharma <ashu.coek88@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Heikki Linnakangas <hlinnaka@iki.fi>
Date: 2019-04-04T16:42:23Z
Lists: pgsql-hackers
On Thu, Apr 4, 2019 at 4:06 AM Ashutosh Sharma <ashu.coek88@gmail.com> wrote:
> Attached is the patch with above changes. Please let me know if my understanding is wrong. Thanks.

You have it right. This bug slipped in towards the end of development,
when the insertstate struct was introduced.

I have pushed something very close to the patch you posted. (I added
an additional assertion, and tweaked the comments.)

Thanks for the report and patch!
-- 
Peter Geoghegan



Commits

  1. Invalidate binary search bounds consistently.

  2. Refactor nbtree insertion scankeys.