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 1syY36-000hrU-0i for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2024 14:52:24 +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 1syY26-002LmW-Sf for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2024 14:51:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syY26-002LlB-G5 for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2024 14:51:22 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1syY24-00034z-2A for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2024 14:51:21 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5c718bb04a3so9642962a12.3 for ; Wed, 09 Oct 2024 07:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=cybertec.at; t=1728485478; x=1729090278; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=QZr/9eK3aT8FKQxK9ZRZaYXRRg7TUvvkb6caf4PaslI=; b=cm4MJUZh23sagxbvl1jWJkPSgASWBpba6FI0/Yex7c8fbsKLr20CPLvfGLAGz+FFiv A0nRCt6MX8CriZ6FrP7yTMK8mIysZJbIu9NVAmXgImEzW9aVaHy4Kb/G0N0694f2jEED nV/rJ7TYmNCpZ4NXY8onZukAm5PE7Hjp+2Z6w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728485478; x=1729090278; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QZr/9eK3aT8FKQxK9ZRZaYXRRg7TUvvkb6caf4PaslI=; b=RhrttwHjuOBPPT/HTfzdR/B+vDEknBVEokTnq1m+ipY1CCgaNgWP6mSyNRNo7EYxNe yi8414SciU/iYMPJwS87wmcG8zc3WuAampKhLHa/j52JWDdj+XouOi5XuPuNibHQDuOT swgeowZT1EgECST0B+gEYT1chzpzfky2D+vHvdeX2p8i+l7OZlnHTtZzZK6c3jynKiqP OCzyo7En+9ChqIKXrZWHBMb+2/wHbOnIP9u6uBGGAnKprl6AtkH7Hv6W00uuohU2cUG6 IHv2BqgtD8Ym2pnSNMmexFjZfwFS16BlefIHUibBxlhwBzV2KJ2833IBHA01DmMBxnle VvhQ== X-Forwarded-Encrypted: i=1; AJvYcCWzVaklppDoQJfZ5p+dPPQjxFH6mLKucUXWfPAoH3Uoy0q7E2MBoQVLbrYN4mmZxgASYbiDv9GcTZiWgcao@lists.postgresql.org X-Gm-Message-State: AOJu0Yzb542l05YQP3w1d95jjyl+wQJZlFSHJrWu9gcTWf+Ex1cB6mPG CUU0MA/Yms6I8N/3D4m5ZtNyhrycn2082iHhaRWE9l6/LBhVucu0i7X9INuVgbw= X-Google-Smtp-Source: AGHT+IEjq9mBBFW7+7I5AgPksULGWA0Ung35WlNPehv4po7UqFeZ0p+T88dhC2WiXf3R7XHEalHx5A== X-Received: by 2002:a05:6402:26d4:b0:5c8:79fa:2e4f with SMTP id 4fb4d7f45d1cf-5c91d69a2demr2348110a12.32.1728485477593; Wed, 09 Oct 2024 07:51:17 -0700 (PDT) Received: from dynamic-pd01.res.v6.highway.a1.net ([2001:871:5e:1fe8:e413:9350:951c:da89]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c9280ad099sm651956a12.84.2024.10.09.07.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 07:51:17 -0700 (PDT) Message-ID: <35d3e799d47700dc217b1f211aa0e0d5f4de4e67.camel@cybertec.at> Subject: Re: Questions about document "Concurrenry control" section From: Laurenz Albe To: iseki zero , pgsql-general@lists.postgresql.org Date: Wed, 09 Oct 2024 16:51:16 +0200 In-Reply-To: <7901c7e4-69c6-4bb2-8e9d-ad556d493717@iseki.space> References: <7901c7e4-69c6-4bb2-8e9d-ad556d493717@iseki.space> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2024-10-09 at 18:07 +0800, iseki zero wrote: > I found it difficult to understanding some paragraph in the document=20 > "Concurrency control" section. >=20 > =C2=A0> The Repeatable Read mode provides a rigorous guarantee that each= =20 > transaction sees a completely stable view of the database. However, this= =20 > view will not necessarily always be consistent with some serial (one at= =20 > a time) execution of concurrent transactions of the same level. For=20 > example, even a read-only transaction at this level may see a control=20 > record updated to show that a batch has been completed but/not/see one= =20 > of the detail records which is logically part of the batch because it=20 > read an earlier revision of the control record. Attempts to enforce=20 > business rules by transactions running at this isolation level are not= =20 > likely to work correctly without careful use of explicit locks to block= =20 > conflicting transactions. >=20 > At:=20 > https://www.postgresql.org/docs/17/transaction-iso.html#XACT-REPEATABLE-R= EAD:~:text=3DThe%20Repeatable%20Read%20mode,to%20block%20conflicting%20tran= sactions. >=20 > Specifically, I can't understand the example. I think this is referring to this example: https://wiki.postgresql.org/wiki/SSI#Deposit_Report Yours, Laurenz Albe