From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | "Wood, Dan" <hexpert(at)amazon(dot)com> |
Cc: | Peter Geoghegan <pg(at)bowt(dot)ie>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, "Wong, Yi Wen" <yiwong(at)amazon(dot)com> |
Subject: | Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple |
Date: | 2017-10-04 09:54:29 |
Message-ID: | 20171004095429.lh37mah23vp3ydau@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-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
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2017-10-04 12:06:09 | Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple |
Previous Message | Alvaro Herrera | 2017-10-04 09:51:59 | Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 2017-10-04 09:57:58 | Re: datetime.h defines like PM conflict with external libraries |
Previous Message | Alvaro Herrera | 2017-10-04 09:51:59 | Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple |