From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Beachy <mbeachy@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: -1/0 virtualtransaction
Date: Mon, 26 Apr 2021 18:16:03 -0400
Message-ID: <2358527.1619475363@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEoC5=FnDWGLEyCHBvj_yLrY=Jsbu4M7CQrw44nGBcLDToJbKg@mail.gmail.com>
References: <CAEoC5=FnDWGLEyCHBvj_yLrY=Jsbu4M7CQrw44nGBcLDToJbKg@mail.gmail.com>
Mike Beachy <mbeachy@gmail.com> writes:
> Does anyone have any pointers on what a virtualtransaction of '-1/0' means?
> I'm using SSI and an example is
> locktype | database | relation | page | tuple | virtualxid |
> transactionid | classid | objid | objsubid | virtualtransaction | pid |
> mode | granted | fastpath
> ----------+----------+----------+---------+-------+------------+---------------+---------+-------+----------+--------------------+-----+------------+---------+----------
> page | 16384 | 468238 | 19216 | | |
> | | | | -1/0 | | SIReadLock |
> t | f
Hmm, that's an invalid VXID, which would ordinarily mean that nothing
is holding the lock. There is a passing mention in mvcc.sgml that
SIRead locks sometimes need to be held past transaction end, so maybe
what you're looking at is such a lock that is no longer associated
with a specific transaction. I have to disclaim knowing much of
anything about the SSI code, though.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, mbeachy@gmail.com
Subject: Re: -1/0 virtualtransaction
In-Reply-To: <2358527.1619475363@sss.pgh.pa.us>
References: <CAEoC5=FnDWGLEyCHBvj_yLrY=Jsbu4M7CQrw44nGBcLDToJbKg@mail.gmail.com> <2358527.1619475363@sss.pgh.pa.us>
* 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