Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNeNS-0007NT-BR for pgsql-general@arkaria.postgresql.org; Thu, 24 Oct 2019 14:46:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNeNR-0006sJ-6k for pgsql-general@arkaria.postgresql.org; Thu, 24 Oct 2019 14:46:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNeNQ-0006sC-Tq for pgsql-general@lists.postgresql.org; Thu, 24 Oct 2019 14:46:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNeNJ-0001s9-EK for pgsql-general@postgresql.org; Thu, 24 Oct 2019 14:46:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9OEjx32029537; Thu, 24 Oct 2019 10:45:59 -0400 From: Tom Lane To: Luca Ferrari cc: pgsql-general Subject: Re: LocalTransactionId vs txid_current In-reply-to: References: Comments: In-reply-to Luca Ferrari message dated "Thu, 24 Oct 2019 15:28:14 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29535.1571928359.1@sss.pgh.pa.us> Date: Thu, 24 Oct 2019 10:45:59 -0400 Message-ID: <29536.1571928359@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Luca Ferrari writes: > I'm exploring DTrace, and I thought that LocalTransactionId as > described in > would have a relationship with txid_current(), It does not. txid_current returns a globally valid transaction ID, while local transaction IDs are just taken from a counter within the session and have no meaning to other sessions. regards, tom lane