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 1pIhcF-0000Tg-9Q for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Jan 2023 02:58:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIhcE-0006dj-5G for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Jan 2023 02:58:54 +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 1pIhcD-0006dZ-5w for pgsql-hackers@lists.postgresql.org; Fri, 20 Jan 2023 02:58:53 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIhcA-000207-6J for pgsql-hackers@postgresql.org; Fri, 20 Jan 2023 02:58:52 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 542053200908; Thu, 19 Jan 2023 21:58:47 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 19 Jan 2023 21:58:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc: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=fm3; t=1674183526; x=1674269926; bh=J0tg/eDyuV p2Gxz85VcQ9YdSfbPjw3YcQNlfuRQFJN8=; b=V60X1wgpaO2aWFoUGWKlVjyhYN 7ddIP0pNxeajDSZJkNlOd4j77Hr6q8xpd2JYNG3Ubt6PrbxzIRFxj99DaXJsfkj/ ffSOhrFq2yF9PFOJXh+LE1wW4xBkUr6Nza9r13YuAb66gN9VRPDsX+NQ27GvucK4 WmCsK4a0Eu/iqdh6qvmFkQBcdU8LhQXkqfFgVKJyYIh3pQ571Dm2iHgHYVwp7Pxd vbQMG3UctU/7bcP7CaMtoK8oY9UNkh+aevJivaktiW1hBBAZmqGaXFUIkp9X07v9 zPId39MaVKPz5aAE63zhFX3UMC683f1KI4ZYIZz8RfjutX0R5O71ykuzxj+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm3; t=1674183526; x=1674269926; bh=J0tg/eDyuVp2Gxz85VcQ9YdSfbPj w3YcQNlfuRQFJN8=; b=elezd/QkXvJWEsPnpJlvjYhDuRObvBg483R5OimpQxaZ 62Pad8QtOGATxprhbopR43JIyWvSFTCpM+H8pDZIOxkqFwqjgOgBK2kybofxIGCP 7XVQFpB0bkxyBZsEzknJ5Rh2EToE8w5Is2HOIhMwUZVOTrdw5MJeJi7mGwWKKMJM J8UDmkH2TWEIY4ZqTWs/dPgskC35pApVDOAFzaWGxA4KS6vO893RffywlAS2Tuvg JnBtSNMv1zYnLBb9BAwqiPrTr5uLDVI0qqNYEmf4+ukwXbYVLbie28JflscMHrXY RZCNUEttpxMlVdj1b56PQpq50RhBAaFXDrK9u2qJ7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduuddgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Jan 2023 21:58:46 -0500 (EST) Date: Thu, 19 Jan 2023 18:58:45 -0800 From: Andres Freund To: pgsql-hackers@postgresql.org Cc: Robert Haas , Thomas Munro , Tom Lane , Amit Langote Subject: Re: Replace PROC_QUEUE / SHM_QUEUE with ilist.h Message-ID: <20230120025845.zavnnjzsa3r2bp5f@awork3.anarazel.de> References: <20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de> <20221203181722.ib6fwzuorhktpmhz@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221203181722.ib6fwzuorhktpmhz@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-12-03 10:17:22 -0800, Andres Freund wrote: > On 2022-11-19 21:59:30 -0800, Andres Freund wrote: > > In [1] Robert justifiably complained about the use of PROC_QUEUE. I've > > previously been bothered by this in [2], but didn't get around to finishing > > the patches. > > > > One thing that made me hesitate was the naming of the function for a) checking > > whether a dlist_node is a list, b) initializing and deleting nodes in a way to > > allow for a). My patch adds dlist_node_init(), dlist_delete_thoroughly() / > > dlist_delete_from_thoroughly() / dclist_delete_from_thoroughly() and > > dlist_node_is_detached(). Thomas proposed dlist_delete_and_reinit() and > > dlist_node_is_linked() instead. > > Any comments on these names? Otherwise I'm planning to push ahead with the > names as is, lest I forget this patchset for another ~2 years. Finally pushed, with some fairly minor additional cleanup. No more SHM_QUEUE, yay! Also, predicate.c really needs some love. Greetings, Andres Freund