pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Wood, Dan <hexpert@amazon.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Wong, Yi Wen <yiwong@amazon.com>
Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
Date: Wed, 4 Oct 2017 11:54:29 +0200
Message-ID: <20171004095429.lh37mah23vp3ydau@alvherre.pgsql> (raw)
In-Reply-To: <360B0EC6-4ED0-4D68-A392-BD1C3453DEAB@amazon.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Wood, Dan wrote:
> One minor side note…   Is it weird for xmin/xmax to go backwards in a hot row chain?
> 
> lp | t_ctid | lp_off | t_infomask | t_infomask2 | t_xmin | t_xmax 
> ----+--------+--------+------------+-------------+--------+--------
>   1 | (0,1)  |   8152 |       2818 |           3 |  36957 |      0
>   2 |        |      5 |            |             |        |       
>   3 |        |      0 |            |             |        |       
>   4 |        |      0 |            |             |        |       
>   5 | (0,6)  |   8112 |       9986 |       49155 |  36962 |  36963
>   6 | (0,7)  |   8072 |       9986 |       49155 |  36963 |  36961
>   7 | (0,7)  |   8032 |      11010 |       32771 |  36961 |      0
> (7 rows)

No, it just means transaction A got its XID before transaction B, but B
executed the update first and A updated the tuple second.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (129+ messages)  latest in thread

Message-ID: <20171004095429.lh37mah23vp3ydau@alvherre.pgsql>
Permalink:  ../20171004095429.lh37mah23vp3ydau@alvherre.pgsql/
Also on:    postgresql.org/message-id/20171004095429.lh37mah23vp3ydau@alvherre.pgsql

 · 

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, hexpert@amazon.com, pg@bowt.ie, michael.paquier@gmail.com, pgsql-hackers@postgresql.org, yiwong@amazon.com
  Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
  In-Reply-To: <20171004095429.lh37mah23vp3ydau@alvherre.pgsql>
  References: <360B0EC6-4ED0-4D68-A392-BD1C3453DEAB@amazon.com> <20171004095429.lh37mah23vp3ydau@alvherre.pgsql>

* 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