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

Commiteabb225

Browse files
committed
Remove over-eager assertion in ExtendBufferedRelTo()
The assertion checked that the size of the relation is not "too large" - butthe code is explicitly dealing with the possibility of another backendextending the relation concurrently. In that case the new relation size couldbe bigger than what the current backend needs, wrongly triggering an assertionfailure.Unfortunately it is hard to write a reliable and affordable regression testsfor this, as a lot of concurrency is needed to encounter the bug.Introduced in31966b1.Reported-by: Melanie Plageman <melanieplageman@gmail.com>
1 parentbc971f4 commiteabb225

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,6 @@ ExtendBufferedRelTo(ExtendBufferedWhat eb,
953953
buffers,&extended_by);
954954

955955
current_size=first_block+extended_by;
956-
Assert(current_size <=extend_to);
957956
Assert(num_pages!=0||current_size >=extend_to);
958957

959958
for (inti=0;i<extended_by;i++)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp