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 1p1X4x-0002Fp-Px for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Dec 2022 18:17:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p1X4w-0005s7-1q for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Dec 2022 18:17:34 +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 1p1X4u-0005ry-Q6 for pgsql-hackers@lists.postgresql.org; Sat, 03 Dec 2022 18:17:33 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p1X4r-0005dH-Bh for pgsql-hackers@postgresql.org; Sat, 03 Dec 2022 18:17:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 677A232007F0; Sat, 3 Dec 2022 13:17:24 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 03 Dec 2022 13:17:24 -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=fm1; t=1670091443; x=1670177843; bh=BDvG/lc0nd KiNQHcJbk01OCD6+C62+Ida+xov/uzNEo=; b=Xarzh/PcbqjZYOIZhgTe5GHqHd pyTTtu7F0eq2UZf0/Vkrv5RTHAXjhtzF3WnjPRxIp9xbhLP5wv4fOcXD+t+zSdEj 4qHKXKzXxY2RbIK18Ar1ODpgM5WWwO0rvirNCl7py48wATXxY2/uz3AZdyWcQKxV kWwVIY2v38/3z6MZCOhh121uWSCFVtTFbgtGECmUriaJQMuOH7RfTkCN6CqQs7D9 G4TQRb1OOHG1+nkw+ClHlcaKDSfipvbuKdYOaY9zkHdOvYaB5k8wcvzjjl8ZtQIg te8qjPpMvJc/qlK4DNPvtJ3hoX81I/DmJhh7LQAsdLlMOj+eDauce6v0sZJg== 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= fm1; t=1670091443; x=1670177843; bh=BDvG/lc0ndKiNQHcJbk01OCD6+C6 2+Ida+xov/uzNEo=; b=mtB3swzVaMAZmhcADr41zlLrA45dk26aRfRioPgfBvrF e1eUqN5lS1EJJeRMgPra1rLuFUXBkOL0PhDg7+UcQcz4LE2ZO/Hp00RQhVqud+Jo YzdfUVZ0padf9jelxAlE6W3VyKtX+LyzdjUhYnIc7tOt9c4ChASHTj9wnrrZ/BvA kGxf36ndIGifutzM668d+1wtI9VVofAokIdkwGmqHt+55jokVS53Dft1AoevGuS8 gWhav8CdY1/YedDvhfGQhvwE9qHOmJKgcCAIO3FILTmLYc+wVUMKvXgrzBJ4Ddy3 ojAqc9HY8/25bk5533brwjDOgSabUQQ5TxbpFK3v+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 3 Dec 2022 13:17:23 -0500 (EST) Date: Sat, 3 Dec 2022 10:17:22 -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: <20221203181722.ib6fwzuorhktpmhz@awork3.anarazel.de> References: <20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, 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. Greetings, Andres Freund