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 1ow78O-0000fP-DK for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Nov 2022 19:34:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ow78N-0006Wb-7G for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Nov 2022 19:34:43 +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 1ow78M-0006WR-VC for pgsql-hackers@lists.postgresql.org; Fri, 18 Nov 2022 19:34:42 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ow78K-0001i5-JG for pgsql-hackers@postgresql.org; Fri, 18 Nov 2022 19:34:42 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1ow78E-006Ov2-G6; Fri, 18 Nov 2022 14:34:34 -0500 Date: Fri, 18 Nov 2022 14:34:34 -0500 From: Bruce Momjian To: Simon Riggs Cc: Laurenz Albe , Robert Treat , Alvaro Herrera , Erik Rijkers , Justin Pryzby , PostgreSQL Hackers Subject: Re: New docs chapter on Transaction Management and related changes Message-ID: References: <20221014084615.chvollxv3oz43oqu@alvherre.pgsql> <80a5fd9c080d66e62f90c9565e3e1b54e61f584c.camel@cybertec.at> <3603e6e85544daa5300c7106c31bc52673711cd0.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 10, 2022 at 11:31:25AM +0000, Simon Riggs wrote: > > That's not true. Transactions waiting for table-level locks are shown > > waiting for a "relation" lock in both "pg_stat_activity" and "pg_locks". > > Agreed. > > Lock waits on table-locks are shown waiting for a lock type of > relation, > while lock waits on row-level locks are shown waiting for a lock type > of transactionid. > Table-level locks require only a virtualxid when the lock is less than an > AccessExclusiveLock; in other cases an xid must be allocated. Yeah, I went with more generic wording since the point seems to be that sometimes xid and sometimes vxids are waited on. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson