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

Commit1460b19

Browse files
committed
Assert that pre/post-fix updated tuples are on the same page during replay.
If they were not 'oldtup.t_data' would be dereferenced while set to NULLin case of a full page image for block 0.Do so primarily to silence coverity; but also to make sure this prerequisiteisn't changed without adapting the replay routine as that would appear towork in many cases.Andres Freund
1 parenta692ee5 commit1460b19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8115,11 +8115,13 @@ newsame:;
81158115

81168116
if (xlrec->flags&XLOG_HEAP_PREFIX_FROM_OLD)
81178117
{
8118+
Assert(samepage);
81188119
memcpy(&prefixlen,recdata,sizeof(uint16));
81198120
recdata+=sizeof(uint16);
81208121
}
81218122
if (xlrec->flags&XLOG_HEAP_SUFFIX_FROM_OLD)
81228123
{
8124+
Assert(samepage);
81238125
memcpy(&suffixlen,recdata,sizeof(uint16));
81248126
recdata+=sizeof(uint16);
81258127
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp