Fix crash on insert into a table with an expression index
authorCraig Ringer <craig@2ndquadrant.com>
Mon, 18 Jan 2016 01:55:13 +0000 (09:55 +0800)
committerCraig Ringer <craig@2ndquadrant.com>
Mon, 18 Jan 2016 01:55:13 +0000 (09:55 +0800)
commit06f52b849956c571763234f17ebd483fb9258412
treef3996307ca69debce57f232b5af3f26882933807
parentfaff593a3321622a87a55a726f1e81ac9ce3162e
Fix crash on insert into a table with an expression index

We failed to set up a snapshot before calling UserTableUpdateOpenIndexes
during process_remote_insert, leading to a crash if the executor called
into anything that expects a snapshot. Like evaluation of expressions
in indexes.

Per report and fix from Abdul Yadi
https://abdulyadi.wordpress.com/2015/12/29/bdr-0-9-3-and-index-on-expression-part-3-solved/
bdr_apply.c