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 1q6Byj-0004gp-2N for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Jun 2023 15:18:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q6Byg-0003F1-VI for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Jun 2023 15:18:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Byg-0003Es-Lv for pgsql-hackers@lists.postgresql.org; Mon, 05 Jun 2023 15:18:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Bya-000MdV-0q for pgsql-hackers@postgresql.org; Mon, 05 Jun 2023 15:18:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 355FIRV94178105; Mon, 5 Jun 2023 11:18:27 -0400 From: Tom Lane To: Heikki Linnakangas cc: pgsql-hackers Subject: Re: Let's make PostgreSQL multi-threaded In-reply-to: <31cc6df9-53fe-3cd9-af5b-ac0d801163f4@iki.fi> References: <31cc6df9-53fe-3cd9-af5b-ac0d801163f4@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Mon, 05 Jun 2023 17:51:57 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4178103.1685978307.1@sss.pgh.pa.us> Date: Mon, 05 Jun 2023 11:18:27 -0400 Message-ID: <4178104.1685978307@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Heikki Linnakangas writes: > I spoke with some folks at PGCon about making PostgreSQL multi-threaded, > so that the whole server runs in a single process, with multiple > threads. It has been discussed many times in the past, last thread on > pgsql-hackers was back in 2017 when Konstantin made some experiments [0]. > I feel that there is now pretty strong consensus that it would be a good > thing, more so than before. Lots of work to get there, and lots of > details to be hashed out, but no objections to the idea at a high level. > The purpose of this email is to make that silent consensus explicit. If > you have objections to switching from the current multi-process > architecture to a single-process, multi-threaded architecture, please > speak up. For the record, I think this will be a disaster. There is far too much code that will get broken, largely silently, and much of it is not under our control. regards, tom lane