From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Simon Riggs <simon@2ndQuadrant.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Exclude VACUUMs from RunningXactData
Date: Thu, 7 Jun 2018 14:22:15 -0700
Message-ID: <20180607212215.mjni4ki6j2hgg5i2@alap3.anarazel.de> (raw)
In-Reply-To: <2850.1528403070@sss.pgh.pa.us>
References: <E1fR0mh-0006ZJ-O6@gemulon.postgresql.org>
<2850.1528403070@sss.pgh.pa.us>
On 2018-06-07 16:24:30 -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
> > Exclude VACUUMs from RunningXactData
> > GetRunningTransactionData() should ignore VACUUM procs because in some
> > cases they are assigned xids.
>
> Uh, what? Lazy vacuum shouldn't acquire an xid. If it does, that
> would suggest it's running code that it's unsafe for
> GetRunningTransactionData to ignore.
Well, we currently do acquire an xid at the end when truncating (see
[1]). But that still doesn't seem to make it the right thing to ignore
these xids. Let's continue the discussion over there?
Greetings,
Andres Freund
[1] http://archives.postgresql.org/message-id/20180607211918.h2cdja26ypriw2sm%40alap3.anarazel.de
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: andres@anarazel.de, tgl@sss.pgh.pa.us, simon@2ndQuadrant.com
Subject: Re: pgsql: Exclude VACUUMs from RunningXactData
In-Reply-To: <20180607212215.mjni4ki6j2hgg5i2@alap3.anarazel.de>
References: <E1fR0mh-0006ZJ-O6@gemulon.postgresql.org> <2850.1528403070@sss.pgh.pa.us> <20180607212215.mjni4ki6j2hgg5i2@alap3.anarazel.de>
* 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