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

Commit81e36d3

Browse files
committed
Invalidate smgr_targblock in smgrrelease().
In rare circumstances involving relfilenode reuse, it might have beenpossible for smgr_targblock to finish up pointing past the end.Oversight inb74e94d. Back-patch to 15.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:https://postgr.es/m/CA%2BhUKGJ8NTvqLHz6dqbQnt2c8XCki4r2QvXjBQcXpVwxTY_pvA%40mail.gmail.com
1 parentd3c25ca commit81e36d3

File tree

1 file changed

+1
-0
lines changed
  • src/backend/storage/smgr

1 file changed

+1
-0
lines changed

‎src/backend/storage/smgr/smgr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ smgrrelease(SMgrRelation reln)
296296
smgrsw[reln->smgr_which].smgr_close(reln,forknum);
297297
reln->smgr_cached_nblocks[forknum]=InvalidBlockNumber;
298298
}
299+
reln->smgr_targblock=InvalidBlockNumber;
299300
}
300301

301302
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp