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 1kZVSa-0007vF-L1 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2020 08:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kZVSY-0002U2-7o for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2020 08:45:02 +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 1kZVSX-0002Td-TV for pgsql-hackers@lists.postgresql.org; Mon, 02 Nov 2020 08:45:02 +0000 Received: from lb1-smtp-cloud7.xs4all.net ([194.109.24.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZVSS-0000zc-MZ for pgsql-hackers@lists.postgresql.org; Mon, 02 Nov 2020 08:45:01 +0000 Received: from webmailclassic.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:195]) by smtp-cloud7.xs4all.net with ESMTPA id ZVSQki5uw1KUMZVSQk65d7; Mon, 02 Nov 2020 09:44:54 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1604306694; bh=0ntF3OypQ0+OT0r01mhai2xZYKZ9HE1gx2RI3O5+xFA=; h=MIME-Version:Date:From:To:Subject:Message-ID:Content-Type:From: Subject; b=KuEYdJcrUkjvVJDYIzz9b7yhUXdESQd/UcYMmGDDVudT77r6j5zLiC4llAadRghAD 09Rt/UWQS9fGGEWAvotf3UQHyPxybMYJ1epgGgs70pwscLnKF76dDr6fMFcLuDKxaZ 6HfnS5/FMjfJJnHJtVrhqHLx/1hGVz7E6QyecyLzF9rN/McY37MBQBD+Q92DA4x1je 3YyXfleT+2rgCe0ySUFvzH9MSY34O/DZtBkg6h4kuZ4CLjLCxDZaOyc88awY6Gww1D S+L6Bn6cz+ZiBpMUT2rQND7GPWdk2QbDUNMZKf48ntrJzfiFvViRH6ZqDCNrCqfGxa IckbereIHqIzw== Received: from fc0c:c185:a5f8:6dfd:a400:6e47:313b:867f by webmailclassic.xs4all.nl with HTTP (HTTP/1.1 POST); Mon, 02 Nov 2020 09:44:54 +0100 MIME-Version: 1.0 Date: Mon, 02 Nov 2020 09:44:54 +0100 From: Erik Rijkers To: =?UTF-8?Q?J=C3=BCrgen_Purtz?= Cc: Justin Pryzby , "David G. Johnston" , PostgreSQL Hackers Subject: Re: Additional Chapter for Tutorial In-Reply-To: References: <13c65997-9502-7671-1a7b-50e5d5093514@purtz.de> <9df5b9c8-71fe-47a8-4670-346a0ae7e2cd@purtz.de> <567f7c92-dce9-7424-9022-54b31eb12740@purtz.de> <1B5F7D1E-B389-4D3B-973A-A8D183D8530A@yesql.se> <766cab17c6af48956558611520956b77@xs4all.nl> <93fd8e15-8639-23c8-c7c4-d4cfca323189@purtz.de> <32c7ebc0-f69f-8a77-c397-8fcb9139d8d3@purtz.de> <779bb812-5238-f78b-2782-b1d990f952e3@purtz.de> <7a081d6c-e288-615c-f32c-839fb27366ed@purtz.de> Message-ID: <759f7a615736d8066b3441571d371c68@xs4all.nl> X-Sender: er@xs4all.nl User-Agent: XS4ALL Webmail Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfLcE9oyQjp15rm9Ijdw5LLEe3zyso+9O0rhu5teH5upPf7OmhdnfaTNKCUwOlxcETEXgux4H2AzFtO/MMdH1wnyUitO8R3lzTPVUHJtA9bm7t07uW9JI xMgnaYFqw864l7vFSTuYH9mtH4HebUIP2N/LYViJ5NzGqHuN09XJqyw9d00EwvKUM8ySl0Zz2qPOzV8H/bepCl7dKUhs+ttdq4wJKHeKf5Syap54Ap+IYcwg 1uhw4MbRcQ35dXKUhu6Wv2UGx2v7eXO13UGZeipDb9kCuI1xo+0zgifmI54Ga0V+hpdzpnF3TGJKzkKtfMDZPAHCZD2aQ/JvVALzK5CxQOqcHDEAr7c6zH8e hSr6SfLa List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-11-02 09:26, Jürgen Purtz wrote: > OLD: > >     A first approach to implement protections against concurrent >     access to the same data may be the locking of critical >     rows. Two such techniques are: >     Optimistic Concurrency Control (OCC) >     and Two Phase Locking (2PL). >     PostgreSQL implements a third, more >     sophisticated technique: Multiversion Concurrency >     Control (MVCC). The crucial advantage of MVCC ... > > Proposal: > >     A first approach to implement protections against concurrent >     access to the same data may be the locking of critical >     rows. >     PostgreSQL implements a more >     sophisticated technique which avoids any locking: > Multiversion Concurrency >     Control (MVCC). The crucial advantage of MVCC ... > > Any thoughts or other suggestions? > Yes, just leave it out. Much better, as far as I'm concerned. Erik