pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Mike Beachy <mbeachy@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: -1/0 virtualtransaction
Date: Tue, 27 Apr 2021 08:56:45 +0200
Message-ID: <fe31f281de4a4fe2635e3f1fe142c5345058a0f2.camel@cybertec.at> (raw)
In-Reply-To: <CAEoC5=FnDWGLEyCHBvj_yLrY=Jsbu4M7CQrw44nGBcLDToJbKg@mail.gmail.com>
References: <CAEoC5=FnDWGLEyCHBvj_yLrY=Jsbu4M7CQrw44nGBcLDToJbKg@mail.gmail.com>

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 over time.
>  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






view thread (9+ messages)  latest in thread

Message-ID: <fe31f281de4a4fe2635e3f1fe142c5345058a0f2.camel@cybertec.at>
Permalink:  ../fe31f281de4a4fe2635e3f1fe142c5345058a0f2.camel@cybertec.at/
Also on:    postgresql.org/message-id/fe31f281de4a4fe2635e3f1fe142c5345058a0f2.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, mbeachy@gmail.com
  Subject: Re: -1/0 virtualtransaction
  In-Reply-To: <fe31f281de4a4fe2635e3f1fe142c5345058a0f2.camel@cybertec.at>
  References: <CAEoC5=FnDWGLEyCHBvj_yLrY=Jsbu4M7CQrw44nGBcLDToJbKg@mail.gmail.com> <fe31f281de4a4fe2635e3f1fe142c5345058a0f2.camel@cybertec.at>

* 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