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

2019-04-04 Thread Ashutosh Sharma
On Thu, Apr 4, 2019 at 10:12 PM Peter Geoghegan wrote: > On Thu, Apr 4, 2019 at 4:06 AM Ashutosh Sharma > 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, >

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

2019-04-04 Thread Ashutosh Sharma
I spent some time investigating on why this assertion failure is happening and found the reason for it. It's basically happening because when we have multiple transactions running in parallel and they all are trying to check for the uniqueness of a tuple to be inserted, it's obvious that one

Server Crash due to assertion failure in _bt_check_unique()

2019-04-04 Thread Ashutosh Sharma
Hi All, I'm getting a server crash in *_bt_check_unique*() when running the following test-case. *Steps to reproduce the crash:* *Step1:* Create a test table with primary key and insert some data in it. create table t1 (a integer primary key, b text); insert into t1 values (1, 'text1'); insert