On Fri, Apr 6, 2018 at 1:19 PM, Amit Kapila <amit.kapil...@gmail.com> wrote:
> 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.
>

Thanks for the reminder -- fixed in the attached version.

Regards,
Amul

Attachment: v10-0001-Raise-error-when-affecting-tuple-moved-int.patch
Description: Binary data

Reply via email to