pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix use-after-release mistake in currtid() and currtid2() for vi
Date: Mon, 01 Jun 2020 05:43:45 +0000
Message-ID: <E1jfdEf-0003zE-SP@gemulon.postgresql.org> (raw)

Fix use-after-release mistake in currtid() and currtid2() for views

This issue has been present since the introduction of this code as of
a3519a2 from 2002, and has been found by buildfarm member prion that
uses RELCACHE_FORCE_RELEASE via the tests introduced recently in
e786be5.

Discussion: https://postgr.es/m/20200601022055.GB4121@paquier.xyz
Backpatch-through: 9.5

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/894041eb262fa3c730db11bbd6a93798a905556c

Modified Files
--------------
src/backend/utils/adt/tid.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1jfdEf-0003zE-SP@gemulon.postgresql.org>
Permalink:  ../E1jfdEf-0003zE-SP@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jfdEf-0003zE-SP@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix use-after-release mistake in currtid() and currtid2() for vi
  In-Reply-To: <E1jfdEf-0003zE-SP@gemulon.postgresql.org>
  References: <E1jfdEf-0003zE-SP@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