From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Peter Geoghegan <pg@bowt.ie>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Wood, Dan <hexpert@amazon.com>
Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
Date: Thu, 28 Sep 2017 23:39:59 +0200
Message-ID: <20170928213959.k5jtluoagz5riwx3@alvherre.pgsql> (raw)
In-Reply-To: <CAH2-Wzmscv3DYDtOLjOSrzv9khMr4LR=UFGeFvOWBMG-U1DpyQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Peter Geoghegan wrote:
> We certainly do still see wrong answers to queries here:
>
> postgres=# select ctid, xmin, xmax, * from t;
> ctid | xmin | xmax | id | name | x
> -------+-------+------+----+------+---
> (0,1) | 21171 | 0 | 1 | 111 | 0
> (0,7) | 21177 | 0 | 3 | 333 | 5
> (2 rows)
>
> postgres=# select * from t where id = 3;
> id | name | x
> ----+------+---
> 3 | 333 | 5
> (1 row)
>
> postgres=# set enable_seqscan = off;
> SET
> postgres=# select * from t where id = 3;
> id | name | x
> ----+------+---
> (0 rows)
Yeah, oops.
> FWIW, I am reminded a little bit of the MultiXact/recovery bug I
> reported way back in February of 2014 [1], which also had a HOT
> interaction that caused index scans to give wrong answers, despite
> more or less structurally sound indexes.
>
> [1] https://www.postgresql.org/message-id/CAM3SWZTMQiCi5PV5OWHb+bYkUcnCk=O67w0cSswPvV7XfUcU5g@mail.gmail...
Thanks for the reference. I didn't remember this problem and it's not
(wasn't) in my list of things to look into. Perhaps these are both the
same bug.
--
Á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
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, pg@bowt.ie, pgsql-hackers@postgresql.org, hexpert@amazon.com
Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
In-Reply-To: <20170928213959.k5jtluoagz5riwx3@alvherre.pgsql>
References: <CAH2-Wzmscv3DYDtOLjOSrzv9khMr4LR=UFGeFvOWBMG-U1DpyQ@mail.gmail.com> <20170928213959.k5jtluoagz5riwx3@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