Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit000efc3

Browse files
committed
In rewriteheap.c (used by VACUUM FULL and CLUSTER), calculate the tuple
length stored in the line pointer the same way it's calculated in the normalheap_insert() codepath. As noted by Jeff Davis, the length stored byraw_heap_insert() included padding but the one stored by the normal codepathdid not. While the mismatch seems to be harmless, inconsistency isn't good,and the normal codepath has received a lot more testing over the years.Backpatch to 8.3 where the heap rewrite code was introduced.
1 parent73bc521 commit000efc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/heap/rewriteheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
641641
}
642642

643643
/* And now we can insert the tuple into the page */
644-
newoff=PageAddItem(page, (Item)heaptup->t_data,len,
644+
newoff=PageAddItem(page, (Item)heaptup->t_data,heaptup->t_len,
645645
InvalidOffsetNumber, false, true);
646646
if (newoff==InvalidOffsetNumber)
647647
elog(ERROR,"failed to add tuple");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp