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 1q7KmY-0002at-VW for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2023 18:54:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q7KmX-0000VX-PI for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2023 18:54:49 +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 1q7KmX-0000VO-FL for pgsql-hackers@lists.postgresql.org; Thu, 08 Jun 2023 18:54:49 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q7KmU-000wQj-RH; Thu, 08 Jun 2023 18:54:48 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CC33B5C0224; Thu, 8 Jun 2023 14:54:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 08 Jun 2023 14:54:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.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 :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1686250485; x=1686336885; bh=ayMtjveVKKrzZMUMrgRMBMDbPDAh95EQlU+ lLwZGkg0=; b=NHAyVBaLv+0CsKMddqvNYY92IYl9bxpLlF+p5XNtv+y7wp76Eik ADnEpRVc3JcL78y8HSYN9HtRyDWCjbK7lCyr+30MZYmEaQ8OuL7RIpk4kFObut8g /GVap1PqSE7V9hpB64UTUpJGtHwxpiB6lF5OCVMcunWsArSqe4HVLnSZCmMuMcnC gjUnH2pJ/nxCY0XNvvLD4mkYTadmuphl2+A7KqyLYmqxOTomTLjIrUp8CoU63ySe 43AuwfkRXzF5dOH5NCVd1R0su4IHNMDhd2mcZ00hfVoYwiOLwgNRulg4IkWq6W+N XtFJwMtkFo4694uagW549y8Xuij6EucAphg== 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 :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1686250485; x=1686336885; bh=ayMtjveVKKrzZMUMrgRMBMDbPDAh95EQlU+ lLwZGkg0=; b=N4ZZS2bntMttpDQo7GT7wPn6s1QdTGUaj/jUJraUbMyw31Y7Oy2 w1/NrXr1DTFOilNbQ3Xl6/Ct4Wmc9G2K6JCbCvxFefh+WvTXmXrKKp28xWiEdl0o xZnjdWQUT2auQY3im0WUEVpgbifl7JN3EYtPhpG+1r9R77mjxbo/wYjW4/UvHF/T YPKXOETk5yCUhVYBvpVZiaLw5GD7y0FaG/ZRxkmZQ20feeEY6h7YXMUmcM68c6UK ebYv8trQcM+KBrUeaY4t6jKMu6K5c2MNS7yvKk1XezfW/DPhq3I09MPZx+j735r7 S5uE5KWzDuMgOpdzE55xZUA6LuUfOaUnftQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtiedgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheptehn ughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecugg ftrfgrthhtvghrnhephfeitefgleevtedtffejvedujeekjedugfdtveffjeelvddtfeek gefgjefhgfegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Jun 2023 14:54:45 -0400 (EDT) Date: Thu, 8 Jun 2023 11:54:44 -0700 From: Andres Freund To: Robert Haas Cc: Hannu Krosing , Matthias van de Meent , "Jonathan S. Katz" , Heikki Linnakangas , Tom Lane , pgsql-hackers Subject: Re: Let's make PostgreSQL multi-threaded Message-ID: <20230608185444.yujqs3ybgjqetoku@awork3.anarazel.de> References: <4178104.1685978307@sss.pgh.pa.us> <4ce6c0f8-e8a4-1672-93fd-49d3fa975ee5@iki.fi> <20230607213721.al3etgcgtija3ytz@awork3.anarazel.de> 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 Hi, On 2023-06-08 11:56:13 -0400, Robert Haas wrote: > On Thu, Jun 8, 2023 at 11:02 AM Hannu Krosing wrote: > > No, I meant that this needs to be fixed at OS level, by being able to > > use the same mapping. > > > > We should not shy away from asking the OS people for adding the useful > > features still missing. > > > > It was mentioned in the Unconference Kernel Hacker AMA talk and said > > kernel hacker works for Oracle, andf they also seemed to be needing > > this :) > > Fair enough, but we aspire to work on a bunch of different operating > systems. To make use of an OS facility, we need something that works > on at least Linux, Windows, macOS, and a few different BSD flavors. > It's not as if when the PostgreSQL project asks for a new operating > system facility everyone springs into action to provide it > immediately. And even if they did, and even if they all released an > implementation of whatever we requested next year, it would still be > at least five, more realistically ten, years before systems with those > facilities were ubiquitous. I'm less concerned about this aspect - most won't have upgraded to a version of postgres that benefit from threaded postgres in a similar timeframe. And if the benefits are large enough, people will move. But: > And unless we have truly obscene amounts of clout in the OS community, it's > likely that all of those different operating systems would implement > different things to meet the stated need, and then we'd have to have a > complex bunch of platform-dependent code in order to keep working on all of > those systems. And even more likely, they just won't do anything, because it's a model that large parts of the industry have decided isn't going anywhere. It'd be one thing if we had 5 kernel devs that we could deploy to work on this, but we don't. So we have to convince kernel devs employed by others that somehow this is an urgent enough thing that they should work on it. The likely, imo justified, answer is just going to be: Fix your architecture, then we can talk. Greetings, Andres Freund