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 1stWCs-00H3NE-SD for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2024 17:53:43 +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 1stWCs-00C2ZX-7L for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2024 17:53:42 +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 1stWCr-00C2ZO-NF for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2024 17:53:41 +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 1stWCp-0011rX-3b for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2024 17:53:40 +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 48PHrbia028110; Wed, 25 Sep 2024 13:53:37 -0400 From: Tom Lane To: Ron Johnson cc: "pgsql-generallists.postgresql.org" Subject: Re: Repeatable Read Isolation Level "transaction start time" In-reply-to: References: <9CEBFAC7-4372-4FF0-8124-FFFE834B03C6@gmail.com> <3346993.1727188126@sss.pgh.pa.us> Comments: In-reply-to Ron Johnson message dated "Wed, 25 Sep 2024 13:50:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28108.1727286817.1@sss.pgh.pa.us> Date: Wed, 25 Sep 2024 13:53:37 -0400 Message-ID: <28109.1727286817@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > But why does "SELECT 1;" need a snapshot? Heck, why does "SELECT > ;" need a snapshot? Because we're not going to analyze the statement in the amount of depth needed to make that distinction before we crank up the transactional machinery. If it says SELECT, it gets a snapshot. regards, tom lane