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 1nRcgF-0004Vk-Tw for pgsql-general@arkaria.postgresql.org; Tue, 08 Mar 2022 16:27:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRcgE-0004AL-RR for pgsql-general@arkaria.postgresql.org; Tue, 08 Mar 2022 16:27:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRcgE-0004AC-Gy for pgsql-general@lists.postgresql.org; Tue, 08 Mar 2022 16:27:22 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRcgB-0001UK-8V for pgsql-general@lists.postgresql.org; Tue, 08 Mar 2022 16:27:21 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id AE14832020A2; Tue, 8 Mar 2022 11:27:17 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 08 Mar 2022 11:27:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; bh=s0TnhmUiIeYm6t UWM+cjsWjYeQ0uIk1HB2HBtTRbiCQ=; b=o7gLPvgjgaukJVnq/neR/UY0bEzafO dYzmWvtdcPl3xlPCPf1s5TilZh8+owvj/XlvWM+dZj0Wzsu9O3JW20NGo48mqmmQ wJ1aLzQfQnEH/196regJEmN1P1ZTiYhe8vvF3NA90wOK7Bfvj+LW0PDkwKOnL73c gZcsxeMLcFV7bZ9A3jr3bcqrPfk00z5wdDeO5VFIun+ShNKqnAsXNoRAC8qieJuY qTfd1ZRcd3Q07YvDnLrBCGhPBfVgV2l2mDNkO3dRKgp8mBdAWiQZDjIMG925PV0K 0MUUTwvXlQ/d61AAmnC0stks8ohS3Gw0ldeF4S4RBaK07e879lEHtaVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=s0TnhmUiIeYm6tUWM+cjsWjYeQ0uIk1HB2HBtTRbi CQ=; b=Hz+ZMYuWaW53TNqnSl+sSfqco0602mpyete/8NsQKIOYw9dz554czJYbC Frc+wzDWXU3PBZuiRRPHoksdBUO2nqG73ijpu6FpHqOPRlfkox/2vfiF/xYHkzfC YV666HyOxHIza1diHMZl3pQR7eQSP3G2lIv1lPRzAyI8JIS5J/EIsi/OxRs3mLna hc6Bv/pGOBq+ZubKbO/mZBoGEGIcmY3MMgTYobuRlqnD64z3Rr0bOW822/9SCVtJ crfy+ulSNH7dddGv5rDBdx5jyKOSDPIG9vgoBrfzCmdQuAqePU9EEE8hexBYcmXW BZmCSzQ/I2aoMNrR7M4WyPoHJZkDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudduiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeffudehtddugefgkeevudffheevvefhfeettdfhveei vdfgieeghfeiueeggffggeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhi rghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Mar 2022 11:27:16 -0500 (EST) Message-ID: Date: Tue, 8 Mar 2022 08:27:15 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: Serializable read only deferrable- implications Content-Language: en-US To: Tom Lane , Michael Lewis Cc: Laurenz Albe , PostgreSQL General References: <368694.1646756481@sss.pgh.pa.us> From: Adrian Klaver In-Reply-To: <368694.1646756481@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/8/22 08:21, Tom Lane wrote: > Michael Lewis writes: >>> A transaction started with the first statement will not take any SI locks, >>> nor will it ever receive a serialization error. > >> What is the meaning of SI? Anything you are aware of in source code or a >> blog post that discusses this? > > There's src/backend/storage/lmgr/README-SSI, which might or might > not be the level of detail you are looking for. If you want to ease into the above: https://www.postgresql.org/docs/current/mvcc-intro.html "PostgreSQL maintains this guarantee even when providing the strictest level of transaction isolation through the use of an innovative Serializable Snapshot Isolation (SSI) level." Then: https://www.postgresql.org/docs/current/transaction-iso.html#XACT-SERIALIZABLE and https://www.postgresql.org/docs/current/applevel-consistency.html#SERIALIZABLE-CONSISTENCY > > regards, tom lane > > -- Adrian Klaver adrian.klaver@aklaver.com