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 1kFIwX-0006JG-Ax for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2020 15:20:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFIwW-0004cv-7t for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2020 15:20:28 +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 1kFIwW-0004cj-1A for pgsql-hackers@lists.postgresql.org; Mon, 07 Sep 2020 15:20:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFIwT-00037q-VL for pgsql-hackers@lists.postgresql.org; Mon, 07 Sep 2020 15:20:27 +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 087FKLsZ1671028; Mon, 7 Sep 2020 11:20:21 -0400 From: Tom Lane To: Michael Paquier cc: Robert Haas , Andres Freund , Bharath Rupireddy , PostgreSQL Hackers Subject: Re: Issue with cancel_before_shmem_exit while searching to remove a particular registered exit callbacks In-reply-to: <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> <20200907074057.GG4867@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Mon, 07 Sep 2020 16:40:57 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1671026.1599492021.1@sss.pgh.pa.us> Date: Mon, 07 Sep 2020 11:20:21 -0400 Message-ID: <1671027.1599492021@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > 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? I think there is agreement that we're not going to change cancel_before_shmem_exit's restriction to only allow LIFO popping. So we should improve its comment to explain why. The other thing that seems legitimately on-the-table for this CF entry is whether we should change cancel_before_shmem_exit to complain, rather than silently do nothing, if it fails to pop the stack. Bharath's last patchset proposed to add an elog(DEBUG3) complaint, which seems to me to be just about entirely useless. I'd make it an ERROR, or maybe an Assert. regards, tom lane