Invalidate smgr_targblock in smgrrelease().
Thomas Munro <tmunro@postgresql.org>
Invalidate smgr_targblock in smgrrelease(). In rare circumstances involving relfilenode reuse, it might have been possible for smgr_targblock to finish up pointing past the end. Oversight in b74e94dc. Back-patch to 15. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/CA%2BhUKGJ8NTvqLHz6dqbQnt2c8XCki4r2QvXjBQcXpVwxTY_pvA%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/smgr/smgr.c | modified | +1 −0 |
Discussion
- Extending SMgrRelation lifetimes 10 messages · 2023-08-14 → 2024-01-31