From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Andres Freund <andres@anarazel.de>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Cc: pgsql-hackers@postgresql.org, Robert Haas <robertmhaas@gmail.com>
Subject: Re: vacuum vs heap_update_tuple() and multixactids
Date: Tue, 19 Dec 2017 15:35:12 -0300
Message-ID: <20171219183512.5clw3fxztholw4vq@alvherre.pgsql> (raw)
In-Reply-To: <20171219183114.q3utztzbqih34ltl@alap3.anarazel.de>
Andres Freund wrote:
> I think the bugfix is going to have to essentially be something similar
> to FreezeMultiXactId(). I.e. when reusing an old tuple's xmax for a new
> tuple version, we need to prune dead multixact members. I think we can
> do so unconditionally and rely on multixact id caching layer to avoid
> unnecesarily creating multis when all members are the same.
Actually, isn't the cache subject to the very same problem? If you use
a value from the cache, it could very well be below whatever the cutoff
multi was chosen in the other process ...
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-bugs@postgresql.org
Cc: alvherre@alvh.no-ip.org, andres@anarazel.de, robertmhaas@gmail.com
Subject: Re: vacuum vs heap_update_tuple() and multixactids
In-Reply-To: <20171219183512.5clw3fxztholw4vq@alvherre.pgsql>
References: <20171219183114.q3utztzbqih34ltl@alap3.anarazel.de> <20171219183512.5clw3fxztholw4vq@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