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 1kFBm1-0004Fm-R2 for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2020 07:41:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFBm0-0007Ir-RN for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2020 07:41:08 +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 1kFBm0-0007Ik-KT for pgsql-hackers@lists.postgresql.org; Mon, 07 Sep 2020 07:41:08 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFBlv-0003Y6-U1 for pgsql-hackers@lists.postgresql.org; Mon, 07 Sep 2020 07:41:07 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 2068F5C0136; Mon, 7 Sep 2020 03:41:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 07 Sep 2020 03:41:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=hF25MAiOo1B3tCx164Mb2kQEiSB p2EzmYzISxUNJYdM=; b=UB+E9TQq3m8v5eYWlREv8wGD4mnOQ8ttMVVZ4zQ7DlP 4pVF5WyG0rffculLybofjO5h0g9Dbo2oFj7rJhCQykOiTYJR7TKVTdaeeMme39Go 1Z53J/8om9E7eqme4bUBxg8MQCdl+dnm0Nqh9xZkAPxm2VHXG6ONCXnZENCwS+sF FEjF/fI/hja4fxCnVCa0eZA1AKE01enq4fW3bzxvmfiCzp7dq+laAWcNyoocyCf6 BsXoulvyOjUY7f3LHfuM2gudCBdvTVM2eGTW/A0N5bZqUnZ0I/eUu11SFKUtWhmT niI75UUi1mW8FHTQVUboPhbaMZoP8Gv/NLEc4+divQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=hF25MA iOo1B3tCx164Mb2kQEiSBp2EzmYzISxUNJYdM=; b=dFNDcZBtWobj3FGlElyjso Lehy0Vyh1H7z3u4SHkuKu/t6k8hHjmdgs/mmuIuuJZ3rQ5XaWztVd6Hm3zFQvHr8 q1COpQfDeWGJ47cgbuyAmbVUZ7lpWq4gmf0+TWB6m6sWcYuAE6IEUIDjfGM1l3K7 eWs8RUUTJ5kBpHT0vHjY0+ekg7Xyve1qVNwk7kRr0WTqwd35g7BZWEjUN/moBoZs T5KAS7CmpkQpeu9kyQIl5QOZ69HJSF108hpw4F9z5urTwiDJ+kZkROwj8DKK4nr3 gh+GS8FLbflOthmGY62nOGX1NYxPtr+JpIL7uelt1nIXLX44+GMf59e9ArkKp+aw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudegledgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeffudeffeelgffhkedukeekvedv udfgieetkeekudelfeevhffhffdtudffieeutdenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqh huihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 118223064605; Mon, 7 Sep 2020 03:41:00 -0400 (EDT) Date: Mon, 7 Sep 2020 16:40:57 +0900 From: Michael Paquier To: Robert Haas Cc: Tom Lane , Andres Freund , Bharath Rupireddy , PostgreSQL Hackers Subject: Re: Issue with cancel_before_shmem_exit while searching to remove a particular registered exit callbacks Message-ID: <20200907074057.GG4867@paquier.xyz> References: <20200807212022.wocdoo2mmzhjsjm3@alap3.anarazel.de> <3195298.1597070661@sss.pgh.pa.us> <3250875.1597088493@sss.pgh.pa.us> <20200811001102.bwcwmrwgirxyec6i@alap3.anarazel.de> <3354159.1597106762@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6BvahUXLYAruDZOj" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --6BvahUXLYAruDZOj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 10, 2020 at 10:10:08PM -0400, Robert Haas wrote: > That split dates to the parallel query work, and there are some > comments in shmem_exit() about it; see in particular the explanation > in the middle where it says "Call dynamic shared memory callbacks." It > seemed to me that I needed the re-entrancy behavior that is described > there, but for a set of callbacks that needed to run before some of > the existing callbacks and after others. We still have a CF entry here: https://commitfest.postgresql.org/29/2649/ Is there still something that needs to absolutely be done here knowing that we have bab1500 that got rid of the root issue? Can the CF entry be marked as committed? (FWIW, I would move any discussion about improving more stuff related to shared memory cleanup code at proc exit into a new thread, as that looks like a new topic.) -- Michael --6BvahUXLYAruDZOj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl9V5AkACgkQnvQgOdby QH0AFA/+MVW1l5M4+qTAXrOjCuRjdvq15cLPBG7+TWntjMXQSYcf+ULPYE9QRr9U fzKbMXK7WB3kqwyEWSGs12+m9oyjYbBh9UR6XhJlSf/OTrrzuJ9H179GLLEslDws 0knvdGAEKUwmF4PLDymLMXoCJi5MgPx6n7rBPksqEXCONtjW77W5Rqthp8jY0RPZ 8mR5li9ksCZHoLE4W3AoBgpX7q2R1Q+PHrDGkSrBg8ssYev50Ve8pJ06AzmnEy+T HoPNwe4PBsNa1YWOpNWtRy0vlBoR6FrH6ZLV0pzwqJrxJW7WQtK7mrcYNP4N0iru q2qzMZqO/wez4/pijYmPF3hakoEJcmO+iU5NYgn1ZBT/KPkKSyL8aolci3fB6ZeD ntPqFXbS+rNAsMaI3vsoRm3c2Y48I5wxTl37exccG5F8zhxgYU8ttkT9DUdH7aFv sMFotiH6Edu9EJ3qQIRD0opOn4tRxz4Q8lTNS0Uc8D1V98pNU7Vq3sLrT3K2rT/l giAt5t8UpbzpGm6UUKY/XjbdeCvUg+XT+G2qZY01JIVHEOuqrU4hdUkrONhp23m2 4zdcDTevdc+A+ESJWO0E7TkamO4AZVYHgJ1QCyGe/7fIjJ5vstYSQPBhiYRYkq1k KU+l7O94qti/MUiI/UkyF/ewnMHb/0phKiQwScj3KEk8xddCBEk= =JmNU -----END PGP SIGNATURE----- --6BvahUXLYAruDZOj--