Re: -1/0 virtualtransaction - Mailing list pgsql-general

From Tom Lane
Subject Re: -1/0 virtualtransaction
Date
Msg-id 2358527.1619475363@sss.pgh.pa.us
Whole thread Raw
In response to -1/0 virtualtransaction  (Mike Beachy <mbeachy@gmail.com>)
Responses Re: -1/0 virtualtransaction
List pgsql-general
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



pgsql-general by date:

Previous
From: Mike Beachy
Date:
Subject: -1/0 virtualtransaction
Next
From: Mike Beachy
Date:
Subject: Re: -1/0 virtualtransaction