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 1npdAv-0008Cf-1x for pgsql-docs@arkaria.postgresql.org; Fri, 13 May 2022 21:50:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1npd9v-0007JJ-0H for pgsql-docs@arkaria.postgresql.org; Fri, 13 May 2022 21:49:15 +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 1npd9u-0007JA-Jf for pgsql-docs@lists.postgresql.org; Fri, 13 May 2022 21:49:14 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1npd9r-0003x5-RW for pgsql-docs@lists.postgresql.org; Fri, 13 May 2022 21:49:14 +0000 Received: by mail-ej1-x634.google.com with SMTP id ch13so18528013ejb.12 for ; Fri, 13 May 2022 14:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=EIXi1TeBj8dKhHsNzS07VKSGo4tmUYZKf/yRt6zNM0U=; b=2SPSCRmegUrdcA5nQzhJXlnE7ZFJ57w5h0ZZEhkBCW4dfSifVGpYNUM3K0O7Lq+r+H hrYoncLTotsra1uOrxDE3gqm2EvuT4KoI0f0DPm26HD3eYf5euZnn5/g2L+/weqVUlsJ 66TqvwqqLpyxyY1TYFQHOC+WwZ09SXHwoFqJTLGK18vEFl/iNiyrQPXZbgTfi3TCoux3 0r506pQ7aIwUFlgg7lvQpTKD4wAZXroXzq1krNYE4U7oiVd/sSZSpQzgyvqeuXwN4J/l kvgDsgxdXMVR9/unyqUxHPAXH3KM6u4h2eO3C9yNw5e9isfqPPXjX4ZVqNXCPRb6CYku EtyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=EIXi1TeBj8dKhHsNzS07VKSGo4tmUYZKf/yRt6zNM0U=; b=xhfCsIz5+hXHwaOR6bWq7ESMxzjvsAP53NU77+88n0fkLw3szMJA5C5BAeCsxmv7tr VOfIFMw4oWoBksoDDHu1098vBFFO1kAjYAMu/8N6vnp92M+PenR6D7JpKJ1ZsCjuoUXT 3+aN6hczoP1IeCTuz0WYHbo8n7+Tx0QAGZJbIO/JvEssnZcIqlcsX83K4nC/MFyA3K8/ XfKL7IePWgB8PNnoT22UrD3wSI74SzRBvjYtLcPMcOfGEEDUNQuXqJwEVejy4PGYmmd+ QI3G/TFwriWIqxrKlFW6JU/4oaNnGDgr92RdSlNTbfINIP0eCRSTFns9AESMLrb3Q1S4 sOWg== X-Gm-Message-State: AOAM5314DWSwkb9y3yFVaaclZmHzVogAohi0M62Wcr8JbfEyNrnI06Fh fVtyXgU7eQBQrqN0HpSUYswQWg== X-Google-Smtp-Source: ABdhPJyL4ug2IG4J7S7XiVU7sKxguAbsIW+nP0vCDgAVXyUH5AusU9/DO6KyrKDnTxWNB5e8Kog/oQ== X-Received: by 2002:a17:906:2a19:b0:6fa:7525:45d8 with SMTP id j25-20020a1709062a1900b006fa752545d8mr5978999eje.768.1652478550689; Fri, 13 May 2022 14:49:10 -0700 (PDT) Received: from [10.1.32.63] (i68970612.versanet.de. [104.151.6.18]) by smtp.gmail.com with ESMTPSA id v21-20020a17090651d500b006f3ef214e15sm1134765ejk.123.2022.05.13.14.49.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 14:49:10 -0700 (PDT) Message-ID: <179f4ffe247c3d6c0938217ef85948bcebb97bdb.camel@cybertec.at> Subject: Re: correction From: Laurenz Albe To: Bruce Momjian Cc: akhilhello@gmail.com, pgsql-docs@lists.postgresql.org Date: Fri, 13 May 2022 23:49:09 +0200 In-Reply-To: References: <165222922369.669.10475917322916060899@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2022-05-13 at 16:36 -0400, Bruce Momjian wrote: > On Wed, May 11, 2022 at 12:36:11PM +0200, Laurenz Albe wrote: > > On Wed, 2022-05-11 at 00:33 +0000, PG Doc comments form wrote: > > > The following documentation comment has been logged on the website: > > > > > > Page: https://www.postgresql.org/docs/14/transaction-iso.html > > > Description: > > > > > > in this page: https://www.postgresql.org/docs/14/transaction-iso.html > > > > > > under the Table 13.1 section, if we search for "phantom reads. Stricter > > > behavior is permitted by the SQL standard", do we mean "Looser behaviour"? > > > > What is meant is "The SQL standard allows an implementation to implement > > stricter behavior than required by the standard; it only defines the things > > that are *not* allowed to happen at a certain isolation level.  So it is for > > example fine for PostgreSQL not to allow dirty reads in READ UNCOMMITTED > > isolation level." > > > > Perhaps this could be rewritten to be clearer; it is indeed easy to > > misunderstand that sentence. > > How is this attached patch's wording? > > diff --git a/doc/src/sgml/mvcc.sgml b/doc/src/sgml/mvcc.sgml > index 341fea524a..244694b07f 100644 > --- a/doc/src/sgml/mvcc.sgml > +++ b/doc/src/sgml/mvcc.sgml > @@ -277,8 +277,8 @@ > > > The table also shows that PostgreSQL's Repeatable Read implementation > - does not allow phantom reads. Stricter behavior is permitted by the > - SQL standard: the four isolation levels only define which phenomena > + does not allow phantom reads. The SQL standard allows more restrictive > + behavior: the four isolation levels only define which phenomena > must not happen, not which phenomena must happen. > The behavior of the available isolation levels is detailed in the > following subsections. I think that suffers from the same problem: izt sounds like the standard allows stricter behavior than PostgreSQL. How about: The table also shows that PostgreSQL's Repeatable Read implementation does not allow phantom reads. That is fine, because the SQL standard only specifies which anomalies must not occur at a certain isolation level. It is no problem if an implementation provides higher guarantees than required. The behavior of the available isolation levels is detailed in the following subsections. Yours, Laurenz Albe