Use xl_heaptid_set() in heap_update_internal.
Commit added xlog lock record, but
missed to tune into for Greenplum which is to add persistent table
information. Hence caused failure during recovery with FATAL message "xlog
record with zero persistenTID". Using xl_heaptid_set() which calls
`RelationGetPTInfo()` making sure PT info is populated for xlog record.
@@ -3271,8 +3271,8 @@ l2:
XLogRecPtr recptr;
XLogRecData rdata[2];
- xlrec.target.node = relation->rd_node;
- xlrec.target.tid = oldtup.t_self;
+ xl_heaptid_set(&xlrec.target, relation, &oldtup.t_self);
+
xlrec.locking_xid = xid;
xlrec.xid_is_mxact = false;
xlrec.shared_lock = false;
