Re: -1/0 virtualtransaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Beachy <mbeachy(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: -1/0 virtualtransaction
Date: 2021-04-26 22:16:03
Message-ID: 2358527.1619475363@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Beachy <mbeachy(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Beachy 2021-04-27 01:06:42 Re: -1/0 virtualtransaction
Previous Message Mike Beachy 2021-04-26 21:45:48 -1/0 virtualtransaction