pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: heap_prepare_freeze_tuple: Simplify coding
Date: Thu, 02 May 2019 20:14:42 +0000
Message-ID: <E1hMI6M-0002k8-Bs@gemulon.postgresql.org> (raw)

heap_prepare_freeze_tuple: Simplify coding

Commit d2599ecfcc74 introduced some contorted, confused code around:
readers would think that it's possible for HeapTupleHeaderGetXmin return
a non-frozen value for some frozen tuples, which would be disastrous.
There's no actual bug, but it seems better to make it clearer.

Per gripe from Tom Lane and Andres Freund.
Discussion: https://postgr.es/m/30116.1555430496@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2bf372a4ae26337ee61cf7a82081cf4bed05182d

Modified Files
--------------
src/backend/access/heap/heapam.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



Message-ID: <E1hMI6M-0002k8-Bs@gemulon.postgresql.org>
Permalink:  ../E1hMI6M-0002k8-Bs@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hMI6M-0002k8-Bs@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: heap_prepare_freeze_tuple: Simplify coding
  In-Reply-To: <E1hMI6M-0002k8-Bs@gemulon.postgresql.org>
  References: <E1hMI6M-0002k8-Bs@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