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 1jjTBQ-0006XD-Aj for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Jun 2020 19:48:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jjTBO-0004am-2F for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Jun 2020 19:48:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjTBN-0004af-ST for pgsql-bugs@lists.postgresql.org; Thu, 11 Jun 2020 19:48:13 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjTBH-0007E3-4M for pgsql-bugs@lists.postgresql.org; Thu, 11 Jun 2020 19:48:13 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 35CC55C01A7; Thu, 11 Jun 2020 15:48:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 11 Jun 2020 15:48:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=Ia0Ewrf70Ab6gMfC16DItqg708y mmaVii8LL6xK+jXI=; b=FNYSszAJaN1xGKTyT8GpJV7WostLh4yVtTaesASedeb OB47TipaxQgnLl3ZXuzojvzdI69BHpp8SahIbZeMsBzSlvYaAnSZBv3wieDxvT4O aweHHWWiyBYOUoWQcAhalE6UPZnbdnxFGEpXreu4AQ7eqeFRpp4dgePzb2xC/RKY VqL7qmGZXtiZ8m/BOxCO/Kv59xkjrM6WNSuBd7FxUepwbxtUrS9+J7atF6cXg2gZ vyNlWhKosB1OktrZPXh7B5dO9Q9IvprxYOFo3tLJ3w9VCSIZhv+QoQgwLdBdyLC7 0btFb7vF0Rkjd2qL1N1gVGSw2vK2pgj+Eo1woAx05kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Ia0Ewr f70Ab6gMfC16DItqg708ymmaVii8LL6xK+jXI=; b=PU7xkjZGdjCavcYG45Qyy5 Bq+JDMwc4fLnZ08XNxJROBIjSwbsIXh4HoSN4aXW/SB1raARBwmtDs/naiw7mTbV IEPgiEN07D9ObuAHdywQDOV2SKUHeXmf24g7nrl7pCOHMhyZuIHGKF5kOTVOftJE FbvCV3MRYfy/kbbaqq7I7tdM3ByimrYuthZAs5iHascuoQ4NXckP3t9QsXhEhdec HvwkK9RvdWcefoAmaU00PJXoauk0Xm1bxvEDOyooI4MAYyO4tBUP31AO+/yJnRPI /qfWtzIPgtIuY9T+lcmlGWfYaQFodxh5b/DBwbkNIWttWrnOyFZ1LjUleF8v6QxA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehledgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeff hfeuffdunecukfhppedujedvrdehkedrleehrdejudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdgu vg X-ME-Proxy: Received: from intern.anarazel.de (unknown [172.58.95.71]) by mail.messagingengine.com (Postfix) with ESMTPA id A70F53280064; Thu, 11 Jun 2020 15:48:03 -0400 (EDT) Date: Thu, 11 Jun 2020 12:47:58 -0700 From: Andres Freund To: Thomas Munro Cc: Kyle Kingsbury , Peter Geoghegan , Kevin Grittner , Jeff Davis , PostgreSQL mailing lists Subject: Re: Potential G2-item cycles under serializable isolation Message-ID: <20200611194758.6ihcdar3inoeegkd@alap3.anarazel.de> References: <20200609021706.62lwps6uywkp4kxt@alap3.anarazel.de> <0a53caa2-d568-0283-a448-96bd4d68c235@jepsen.io> <20200611193023.5t4vhsdjvkrwsrgy@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200611193023.5t4vhsdjvkrwsrgy@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-06-11 12:30:23 -0700, Andres Freund wrote: > Hi, > > On 2020-06-11 17:40:55 +1200, Thomas Munro wrote: > > + > > + The Repeatable Read isolation level is implemented using a technique > > + known in academic database literature and in some other database products > > + as Snapshot Isolation. Differences in behavior > > + may be observed when compared with systems using other implementation > > + techniques. For a full treatment, please see > > + . > > + > > Could it be worthwhile to narrow the "differences in behaviour" bit to > read-write transactions? IME the biggest reason people explicitly use RR > over RC is to avoid phantom reads in read-only transactions. Seems nicer > to not force users to read an academic paper to figure that out? But, on second thought, it might be too difficult to phrase this concisely and correctly, given the annoying issue of SI allowing for read-only transactions to observe violations of serializability. I don't think that's a RR violation, but maybe it could be understood as being about serializability too easily?