pgsql: Invalidate smgr_targblock in smgrrelease().

2023-08-16 Thread Thomas Munro
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 Discussion: https://postgr.es/m/CA%2BhUKGJ

pgsql: Invalidate smgr_targblock in smgrrelease().

2023-08-16 Thread Thomas Munro
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 Discussion: https://postgr.es/m/CA%2BhUKGJ

pgsql: Invalidate smgr_targblock in smgrrelease().

2023-08-16 Thread Thomas Munro
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 Discussion: https://postgr.es/m/CA%2BhUKGJ