On Fri, Apr 6, 2018 at 12:50 PM, amul sul <sula...@gmail.com> wrote: > > Updated patch attached. >
+ if (ItemPointerIndicatesMovedPartitions(&hufd.ctid)) + ereport(ERROR, + (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), + errmsg("tuple to be locked was already moved to another partition due to concurrent update"))); As suggested by Andres, I think you should change the error code to serialization failure i.e ERRCODE_T_R_SERIALIZATION_FAILURE. -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com