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

Ashutosh Sharma <ashu.coek88@gmail.com>

From: Ashutosh Sharma <ashu.coek88@gmail.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Heikki Linnakangas <hlinnaka@iki.fi>
Date: 2019-04-05T01:30:52Z
Lists: pgsql-hackers
On Thu, Apr 4, 2019 at 10:12 PM Peter Geoghegan <pg@bowt.ie> wrote:

> 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 Peter :)


> Thanks for the report and patch!
> --
> Peter Geoghegan
>

-- 
With Regards,
Ashutosh Sharma
EnterpriseDB:http://www.enterprisedb.com

Commits

  1. Invalidate binary search bounds consistently.

  2. Refactor nbtree insertion scankeys.