Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1st6X6-00Dasd-SK for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2024 14:28:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1st6X6-008dEn-2j for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2024 14:28:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1st6X5-008dEf-Mx for pgsql-general@lists.postgresql.org; Tue, 24 Sep 2024 14:28:51 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1st6X3-000p1d-42 for pgsql-general@lists.postgresql.org; Tue, 24 Sep 2024 14:28:50 +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 48OESksJ3346994; Tue, 24 Sep 2024 10:28:46 -0400 From: Tom Lane To: Wizard Brony cc: pgsql-general@lists.postgresql.org Subject: Re: Repeatable Read Isolation Level "transaction start time" In-reply-to: <9CEBFAC7-4372-4FF0-8124-FFFE834B03C6@gmail.com> References: <9CEBFAC7-4372-4FF0-8124-FFFE834B03C6@gmail.com> Comments: In-reply-to Wizard Brony message dated "Mon, 23 Sep 2024 11:15:20 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3346992.1727188126.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Sep 2024 10:28:46 -0400 Message-ID: <3346993.1727188126@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Wizard Brony writes: > But in my testing, I find that according to that statement, the transact= ion start time is actually "the start of the first non-transaction-control= statement in the transaction" (as mentioned earlier in the section). Is m= y conclusion correct, or am I misunderstanding the documentation? It's even looser than that, really: it's the first statement that requires an MVCC snapshot. From memory, LOCK TABLE is an important exception --- you can acquire table locks before pinning down a snapshot, and this is important in some scenarios. regards, tom lane