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 1kiVIp-0004q4-Rj for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 04:24:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kiVIo-0001XE-HK for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 04:24:10 +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 1kiVIo-0001Wq-4X for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 04:24:10 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kiVIl-0004M9-4M for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 04:24:09 +0000 Received: by mail-ed1-x533.google.com with SMTP id y4so4349313edy.5 for ; Thu, 26 Nov 2020 20:24:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=TZw8miLYhR5MKQzACrU999ieekH9fYuacEevD9CtJl8=; b=HXBFZp6YvkqJ2I6kMdKch15Mmty4Xwx973b/av+hhaPovXu0sI8iDsLwhDQ2dgfIKp JaJM/JWn+j5Nb91Veqn3HdY6e8KkLMr4T8shA5M+kLqmFP53A/JUupnDfVwd8g+APwjU 6gAg26IIo/RgeUtrBCcI7LUqt1zbYrnuR6icOE1NfovdDBitHnHmpEwC6OO9VHePPWkY xluOuq11jQayChUitur0UskldHqvvEGP1Wd9gjyf9DJ/DsknOKmIHe/xkhCWsp28C1D7 yLFJT3wpALXIvD+swyV1BSaWpP00+ccwEjQBze1bpy1s7++O64g6BjykW2o0fmXR124R p4zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=TZw8miLYhR5MKQzACrU999ieekH9fYuacEevD9CtJl8=; b=QQO3HUJsV17teUinKg+nH1AwaEglkEmJHI21cTT6Thy99ujAHKJNpfULqTolbbVJQ7 j2HOtNcHuAN4uFPnP9sO8iM3KoHSkgXF7c1n8wTCnu6j51+YII6Vs4/oEr3MJlWRbXNu vNyKuMnyRo6n/6PBf3uMJF+LqjTHj3K79AI+pyISdXnKJUC7pc9J8EJKRKiydjbrCgTF 0y+u2H9BSS7hOquPKfcrKU4/1eGFuiCpBc2D+JFWIc4MDrhmzQSvgxNXzgFivcBCRHiY sEmtEkodUhPm0gVylhsBHPhT/7Fzuxzql7L+JxA1WN16F2UYoi8dCiqYt9A4/iBPeA9E lTpQ== X-Gm-Message-State: AOAM53011altvssrsmk5oVicdAMiAWZ1yholk7ehUW8rrzPRjqN5v+Jo qJ/MhVTLTkNd7NdYMGBrQbVQaw== X-Google-Smtp-Source: ABdhPJxn0/99p/7BHfkIQMIsw9ghN9lpPQ2jehWxmdUmw78aEDbfcRVsMFQHQyWT7r4q2wLEjeHBTg== X-Received: by 2002:aa7:c94b:: with SMTP id h11mr5521880edt.322.1606451046203; Thu, 26 Nov 2020 20:24:06 -0800 (PST) Received: from localhost.localdomain (62-47-145-240.adsl.highway.telekom.at. [62.47.145.240]) by smtp.gmail.com with ESMTPSA id c4sm4238947ejx.9.2020.11.26.20.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 20:24:05 -0800 (PST) Message-ID: Subject: Re: Transaction isolation level Repeatable Read Read Only vs Serializable Read Only From: Laurenz Albe To: Jan Behrens , pgsql-general@lists.postgresql.org Date: Fri, 27 Nov 2020 05:24:04 +0100 In-Reply-To: <20201126234509.b856ad06c6c532f843163a57@magnetkern.de> References: <20201126234509.b856ad06c6c532f843163a57@magnetkern.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2020-11-26 at 23:45 +0100, Jan Behrens wrote: > I understand that in a read+write scenario, two concurrent transactions may still lead to > a result that could not have occurred if those two transactions were executed one after the other. > However, in a read-only case, I do not see how REPEATABLE READ could differ from SERIALIZABLE. Yet [1] explains that: There is an example in the Wiki: https://wiki.postgresql.org/wiki/SSI#Read_Only_Transactions In that example, serializability is broken only because of a READ ONLY transaction. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com