Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uAQqF-00FGUF-1K for pgsql-hackers@arkaria.postgresql.org; Thu, 01 May 2025 10:08:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uAQqB-0020O6-1d for pgsql-hackers@arkaria.postgresql.org; Thu, 01 May 2025 10:08:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uAQqA-0020Ny-Ng for pgsql-hackers@lists.postgresql.org; Thu, 01 May 2025 10:08:27 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uAQq8-000VJT-15 for pgsql-hackers@postgresql.org; Thu, 01 May 2025 10:08:26 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id D59A031AA5F for ; Thu, 01 May 2025 12:08:20 +0200 (CEST) Received: from s979.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id BFC8631B821; Thu, 01 May 2025 12:08:20 +0200 (CEST) Received: from s470.loopia.se (unknown [172.22.191.6]) by s979.loopia.se (Postfix) with ESMTP id BD1A410BC4B5; Thu, 01 May 2025 12:08:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s470.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s980.loopia.se ([172.22.191.5]) by s470.loopia.se (s470.loopia.se [172.22.190.34]) (amavisd-new, port 10024) with LMTP id utfarPHM96-O; Thu, 1 May 2025 12:08:20 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 95.203.57.185 Received: from smtpclient.apple (host-95-203-57-185.mobileonline.telia.com [95.203.57.185]) (Authenticated sender: daniel@yesql.se) by s980.loopia.se (Postfix) with ESMTPSA id 182482201679; Thu, 01 May 2025 12:08:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1746094100; bh=dlS9nEETv/Lc555XzwqW3OXTkescJ49+jXzDs9TSSOs=; h=From:Subject:Date:References:Cc:In-Reply-To:To; b=r5/uj9Fzgzx+CjYT+FZ/P14j7mkdrDJSfIyc6xbhlSun8JCb1+yLbRmQh7iVRFPaN eO8vyjt3h8TXukCImD2fUxDmGiZMP1ffEUdAJ9ZQJFrIN3WQrUEyXJrSFGZzXMEhv5 JPuQOa5x4Yb2eoJsbCajnx2kYBmcoj61NRlI/nswOeDwqjlbuAEpJ1SwxBaYj66oSN UkTQKClaILxt/tXpx+hKsGN6J/Tp3JNZDvWsrVbrbl6pEI5jO9Lbw5xe09fyLut5P0 SMe98JwIJN9LLSbanjKYtfF7jrbdzNE+Pnexaz+xM0rvQg9EpJnd69E96U68fFzlA1 ZOddFkg3kWj9w== Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Daniel Gustafsson Mime-Version: 1.0 (1.0) Subject: Re: Prevent an error on attaching/creating a DSM/DSA from an interrupt handler. Date: Thu, 1 May 2025 12:08:09 +0200 Message-Id: <18F24077-BCF2-4892-A9F6-72DE9AD254BC@yesql.se> References: Cc: Rahila Syed , PostgreSQL Hackers , Fujii Masao , Tomas Vondra In-Reply-To: To: Robert Haas X-Mailer: iPhone Mail (20H350) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 1 May 2025, at 00:04, Robert Haas wrote: >=20 > =EF=BB=BFOn Wed, Apr 30, 2025 at 5:24=E2=80=AFPM Daniel Gustafsson wrote: >> Attached is a current v4 with a few small tweaks. >=20 > Sorry to turn up late here, but I strongly disagree with the notion > that this is a bug in the DSM or DSA code. It seems to me that it is > the caller's responsibility to provide a valid resource owner, not the > job of the called code to ignore the resource owner when it's > unusable. I suspect that there are many other parts of the system that > rely on the ResourceOwner machinery which likewise assume that the > ResourceOwner that they are passed is valid. Thanks for review, I=E2=80=99m currently travelling over the extended weeken= d but will rework the approach shortly when back at the office. ./daniel=