pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: anisimow.d@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17462: Invalid memory access in heapam_tuple_lock
Date: Mon, 11 Apr 2022 12:19:51 -0400
Message-ID: <288544.1649693991@sss.pgh.pa.us> (raw)
In-Reply-To: <286748.1649692519@sss.pgh.pa.us>
References: <17462-9c98a0f00df9bd36@postgresql.org>
	<286748.1649692519@sss.pgh.pa.us>

I wrote:
> Reproduced here.  It's surprising that nobody noticed this before,
> because AFAICS the bug is pretty old: it dates to somebody foolishly
> deciding that heap_fetch didn't need its keep_buf argument, which
> evidently happened in v12 (didn't track down the exact commit yet).

The blame falls on Andres' commit 5db6df0c0.  There is no commentary
there justifying this change, and I judge the amount of thought that
went into it by noting that that commit removed the argument without
removing the header comment explaining it.

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <288544.1649693991@sss.pgh.pa.us>
Permalink:  ../288544.1649693991@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/288544.1649693991@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, anisimow.d@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17462: Invalid memory access in heapam_tuple_lock
  In-Reply-To: <288544.1649693991@sss.pgh.pa.us>

* 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