Commit 2e022807 authored by Heikki Linnakangas's avatar Heikki Linnakangas

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.
parent 6f2efcd5
...@@ -5111,7 +5111,7 @@ heap_xlog_multi_insert(XLogRecPtr lsn, XLogRecord *record) ...@@ -5111,7 +5111,7 @@ heap_xlog_multi_insert(XLogRecPtr lsn, XLogRecord *record)
elog(PANIC, "heap_multi_insert_redo: invalid max offset number"); elog(PANIC, "heap_multi_insert_redo: invalid max offset number");
xlhdr = (xl_multi_insert_tuple *) SHORTALIGN(recdata); xlhdr = (xl_multi_insert_tuple *) SHORTALIGN(recdata);
recdata += SizeOfMultiInsertTuple; recdata = ((char *) xlhdr) + SizeOfMultiInsertTuple;
newlen = xlhdr->datalen; newlen = xlhdr->datalen;
Assert(newlen <= MaxHeapTupleSize); Assert(newlen <= MaxHeapTupleSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment