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 1uwOcG-001MXT-Ag for pgsql-general@arkaria.postgresql.org; Wed, 10 Sep 2025 17:28:20 +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 1uwOcD-002Wi8-0V for pgsql-general@arkaria.postgresql.org; Wed, 10 Sep 2025 17:28:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uwOcC-002Whr-7H for pgsql-general@lists.postgresql.org; Wed, 10 Sep 2025 17:28:17 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uwOc7-0002ib-1Y for pgsql-general@postgresql.org; Wed, 10 Sep 2025 17:28:16 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 51AE81D00146; Wed, 10 Sep 2025 13:28:10 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Wed, 10 Sep 2025 13:28:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1757525290; x= 1757611690; bh=+1e4QZRu7JQappoUoGIDpA3iukzDGfmPY2+ZmiDf1sE=; b=Z wNM0LkGgxyKX3C78xg7Z6Wn2obpYWyw+4zvHh/ABehhvOYg8LmbEqtLDaJMk0g08 MRLMd859uVPB9zba3CO4/ZN2uLFFv1XcFnnyOmFZz9zhjjRcMCxLORbH1Esnj416 /N6m1tuguAz9qr6gBAFNTTDmkdvoJm4lDkNv9OBq1Vm6eGBK9TtXEgApC2n2KQ1l w7v9QnOhhW3NvqS/v0M0mG/P+FOLmLgtWq06DdF+zJpPW9iwj+hyI/gqSvs+WErF xwk/K5g9tHbl4Z8qA8cq2Jzvbvm3WXD0XI75cyyniAL3uA4yMPG744WBhNq0eYmE olhgDEqGMM7H+oC9zuUjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1757525290; x=1757611690; bh=+ 1e4QZRu7JQappoUoGIDpA3iukzDGfmPY2+ZmiDf1sE=; b=glyGd6Pt0M/UApz3t 8DkUhw7J/o3T4dhTZgI8Eh9WiSkx6hJ1q0101MLaM3URkwR0452l8HASng3bro6Y jcI8A8E2R89+tWFyRQpavwE17E1EdMBisPextk0O/26T0an5TAIGvdoy6xj4zOO7 XVr+RnuPJRgnjQU2A2QixVW5mTKOkYcZfqGqugSM/OicDEnLMrx3yEM8iDCTpZt/ GUZLCZHro0wYmdLB+UrQ17913NoPiU0lV8OFj+Pw1pGVPwikPTxYK/eTFadYjzGV tTUZyf+Zz+ZrgmZf8QDb+JET53Vl29WovORK5nBgsefqJdRYh9cU5JdLNOnCNtLT d0pwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvfeeklecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepfeegveekteejhfeukefghfffkeeihfeuleejieffteettedtffekkeel jeejhfdunecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtth hopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhlvghnrghllhhhrght rghtlhgrnhesghhmrghilhdrtghomhdprhgtphhtthhopehmmhhonhgtuhhrvgesghhmrg hilhdrtghomhdprhgtphhtthhopeiiiiiiiiiirdhgrhgrfhesghhmrghilhdrtghomhdp rhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Sep 2025 13:28:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1757525287; bh=UhZOTm6EBbCiVwipymeV3THAU3mybMB1mu/Qr3uCOig=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=N5WEH9CTLPYK3u7q180Q6gKJZKTsifp0KNCDmWvUWItl8df1yGVf3NHQg6Xs4U0EV auzxJueUkb3KcOO2KYESCcbZYZ+XOmtkStKRS0jqzrESiErANme0wXvr1SQfqDj/Ca Cess0+ZZfGun7ZjGZ3GJbNMUtBjJ2uVsZaH/eq5DAKekpAQz0OlCiDVJcdkedtBKtV 9VgvuCtE57mwGCAGxngEgC1V6HrEpcVJGmRgX7StyzbOpsL94J+zONTo6pVdd5JVWo Q7eRawhkqy00lnrLw1yx/rOa0KX8LCS0C1JzAZMtp1UHtMrfe2XdXoXEQB/W9eb/wy /sB31z1ots6hw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id EEBDE5A; Wed, 10 Sep 2025 19:28:07 +0200 (CEST) Date: Wed, 10 Sep 2025 19:28:07 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Justin Cc: Ellen Allhatatlan , Merlin Moncure , pgsql-general Subject: Re: MVCC and all that... Message-ID: <202509101728.5x37irhetd7g@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Sep-10, Justin wrote: > On Wed, Sep 10, 2025 at 3:41 AM Ellen Allhatatlan < > ellenallhatatlan@gmail.com> wrote: > > > The author brings up threaded vs multi-process. That's an old old old > > old old conversation that has been shown there is no clear better way. > > > > This is where things become interesting. Firebird actually has 3 > > process/threading models - and they manage to maintain these with a > > team that is *_much_* smaller than the PostgreSQL one - FB is a minnow > > compared to PG! > > > > AIUI, Michael Stonebraker suggested that the process model > > would/should be "upgraded" to a threaded one at some point in the > > system's developement? > > I am going to need a source on this. Process vs Threads: pro and cons are > very well documented and proven today. My recollection is that this is correct -- Stonebraker and team used a process model because it was the expedient thing to do. Decades later we're still using it, but there's an ongoing effort to implement a threaded model; there are patches already being committed for that. See https://wiki.postgresql.org/wiki/Multithreading Heikki Linnakangas gave two talks on this effort, one at pgconf.eu 2023 titled "Multithreaded PostgreSQL?" and another at pgconf.eu 2024 titled "Multithreaded PostgreSQL!". You kinda see a progression there. I expect the next one should be "Multithreaded PostgreSQL!!1yksitoista!" or something. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Find a bug in a program, and fix it, and the program will work today. Show the program how to find and fix a bug, and the program will work forever" (Oliver Silfridge)