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 1stW4T-00H2Tg-7b for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2024 17:45:02 +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 1stW4S-00Bpjr-8u for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2024 17:45:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1stW4Q-00BpjE-MK for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2024 17:44:59 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1stW4H-0013X5-Mv for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2024 17:44:57 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 49033138020B; Wed, 25 Sep 2024 13:44:47 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 25 Sep 2024 13:44:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1727286287; x=1727372687; bh=efYkWpOwDKSyu2Qovmy8fNzG/gFrQpx3NuLAQqj1pNc=; b= aFdJiMapzB260IvZGfGjg/qfyGxr6xbjkuSyckL4ijzsRhPDfmbT+zWhp0D4hHyb 5jPZWchiqNG8y90YSRWJLFtX5Zv5lol59FYnDmABR2sHbn20gj90veYOIT97HABe W40sy+/jx2omjUWdhsyUaMG0T1z74ooOgGmT+7a2tz8mt+lPFWxaBno7gPcRhUtt kSuEZzva32UlVSVbPuAOl0qhAXd1CTaNmRmkPeeWT7SZK66FNBkp+cPkq2hxTRMc zO8if7OvwUrxmLhAl5wACsokfT/lVudeY0ZFQo9j4TfYSl90iZnyrCV6Xl3OiTyq klRmmQFAH7cR5WqJ6cZTgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1727286287; x= 1727372687; bh=efYkWpOwDKSyu2Qovmy8fNzG/gFrQpx3NuLAQqj1pNc=; b=a cNkrUIKoLsNMZeCDlsGlUm8pbkXhRK7X6zsOw+m4AjCyCmK0QA7/xtOwbQb1ImSh gGJVcSEGr8+muxwiwV5kECoHsVA+L7xJNsK+c9pm/6/vqRRhXWXihJmYq1E0uXzo oNEPrI6bPB/J1Jauz2an3mvFySTUgknTjSjchH3247+oQ81LlmZ9tHShRm9QAiOH 6uMAUSUf2aM9T5wEgXgaKc73t/QDn71VSwVVALiuO5+xTuSys0KmX7dDkZNbh3Fu pHRwlal01jNTQ5Cfuw8lEoXBO5GhdXSrpJXr5bxmVh+zFMtdO1FIEeB1oNEJV0Bi bvNVa4WtUJqW24PWQdyrw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddthedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfet gefgheekjeehteeileeigfetieekjedvieeviefgheevtdenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegr khhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehhthgrmhhfihgushesghhmrghilhdrtghomhdprhgtphhtthhopeht ghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohepfihiiigrrhgusghrohhnhi esghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhs thhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Sep 2024 13:44:44 -0400 (EDT) Message-ID: Date: Wed, 25 Sep 2024 10:44:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Repeatable Read Isolation Level "transaction start time" To: Greg Sabino Mullane , Tom Lane Cc: Wizard Brony , pgsql-general@lists.postgresql.org References: <9CEBFAC7-4372-4FF0-8124-FFFE834B03C6@gmail.com> <3346993.1727188126@sss.pgh.pa.us> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/25/24 10:22 AM, Greg Sabino Mullane wrote: > On Tue, Sep 24, 2024 at 10:28 AM Tom Lane > wrote: > > It's even looser than that, really: it's the first statement that > requires an MVCC snapshot. > > > Hm....so why does "SELECT 1;" work as a transaction start marker then, > as opposed to "SHOW work_mem;", which does not? Do we simply consider > anything with a SELECT as needing a snapshot? SELECT some_func(); Where some_func() does something that requires a snapshot. > > Cheers, > Greg > -- Adrian Klaver adrian.klaver@aklaver.com