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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy