partition_bounds_copy() sets the hash_part and natts variable in eachiteration of a loop to copy the datums in the datums array, whichwould not be efficient. Attached is small patch for avoiding that.
Best regards,Etsuro Fujita