Content-Length: 258633 | pFad | http://github.com/postgrespro/postgres/commit/2e02280726f5ca7a8e3c76e1491eaf5ab00fc8f4

F4 Fix another bug in the redo of COPY batches. · postgrespro/postgres@2e02280 · GitHub
Skip to content

Commit 2e02280

Browse files
committed
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.
1 parent 6f2efcd commit 2e02280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/heap/heapam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5111,7 +5111,7 @@ heap_xlog_multi_insert(XLogRecPtr lsn, XLogRecord *record)
51115111
elog(PANIC, "heap_multi_insert_redo: invalid max offset number");
51125112

51135113
xlhdr = (xl_multi_insert_tuple *) SHORTALIGN(recdata);
5114-
recdata += SizeOfMultiInsertTuple;
5114+
recdata = ((char *) xlhdr) + SizeOfMultiInsertTuple;
51155115

51165116
newlen = xlhdr->datalen;
51175117
Assert(newlen <= MaxHeapTupleSize);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2e02280726f5ca7a8e3c76e1491eaf5ab00fc8f4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy