Fix another bug in the redo of COPY batches.
I got alignment wrong in the redo routine. Spotted by redoing the log genereated by copy regression test.
This commit is contained in:
parent
6f2efcd557
commit
2e02280726
@ -5111,7 +5111,7 @@ heap_xlog_multi_insert(XLogRecPtr lsn, XLogRecord *record)
|
||||
elog(PANIC, "heap_multi_insert_redo: invalid max offset number");
|
||||
|
||||
xlhdr = (xl_multi_insert_tuple *) SHORTALIGN(recdata);
|
||||
recdata += SizeOfMultiInsertTuple;
|
||||
recdata = ((char *) xlhdr) + SizeOfMultiInsertTuple;
|
||||
|
||||
newlen = xlhdr->datalen;
|
||||
Assert(newlen <= MaxHeapTupleSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user