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

From Laurenz Albe
Subject Re: -1/0 virtualtransaction
Date
Msg-id fe31f281de4a4fe2635e3f1fe142c5345058a0f2.camel@cybertec.at
Whole thread Raw
In response to -1/0 virtualtransaction  (Mike Beachy <mbeachy@gmail.com>)
Responses Re: -1/0 virtualtransaction  (Mike Beachy <mbeachy@gmail.com>)
List pgsql-general
On Mon, 2021-04-26 at 17:45 -0400, Mike Beachy wrote:
> 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
 
> 
>  This is incredibly hard to search for. 
> 
> I see these for page, tuple and (perhaps a clue?) one relation, and I'm seeing the page and tuple locks accumulate
overtime.
 
>  Eventually this results in an "out of shared memory" error.

Not sure, but do you see prepared transactions in "pg_prepared_xacts"?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: Durgamahesh Manne
Date:
Subject: About to find all foreign tables are being used by sproc and view and function
Next
From: Guillaume Lelarge
Date:
Subject: Re: DB size