pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Invalidate smgr_targblock in smgrrelease().
Date: Thu, 17 Aug 2023 04:00:07 +0000
Message-ID: <E1qWUB4-000WuC-QV@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/81e36d3e0df8d3d7a3daa2e2216f96df23ffc96a

Modified Files
--------------
src/backend/storage/smgr/smgr.c | 1 +
1 file changed, 1 insertion(+)



view thread (3+ messages)  latest in thread

Message-ID: <E1qWUB4-000WuC-QV@gemulon.postgresql.org>
Permalink:  ../E1qWUB4-000WuC-QV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qWUB4-000WuC-QV@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Invalidate smgr_targblock in smgrrelease().
  In-Reply-To: <E1qWUB4-000WuC-QV@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox