Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lb9Wb-0000wm-7D for pgsql-general@arkaria.postgresql.org; Mon, 26 Apr 2021 22:16:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lb9WY-0004aB-RU for pgsql-general@arkaria.postgresql.org; Mon, 26 Apr 2021 22:16:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lb9WY-0004a3-Jp for pgsql-general@lists.postgresql.org; Mon, 26 Apr 2021 22:16:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lb9WR-0002FP-SA for pgsql-general@lists.postgresql.org; Mon, 26 Apr 2021 22:16:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13QMG3NI2358528; Mon, 26 Apr 2021 18:16:03 -0400 From: Tom Lane To: Mike Beachy cc: pgsql-general@lists.postgresql.org Subject: Re: -1/0 virtualtransaction In-reply-to: References: Comments: In-reply-to Mike Beachy message dated "Mon, 26 Apr 2021 17:45:48 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2358526.1619475363.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 26 Apr 2021 18:16:03 -0400 Message-ID: <2358527.1619475363@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mike Beachy writes: > Does anyone have any pointers on what a virtualtransaction of '-1/0' mea= ns? > 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