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 1pY3U5-0005Z8-1z for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Mar 2023 11:21:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pY3U3-0006bx-5k for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Mar 2023 11:21:55 +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 1pY3U2-0006bo-3I for pgsql-bugs@lists.postgresql.org; Fri, 03 Mar 2023 11:21:54 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pY3Tx-0004a6-4m for pgsql-bugs@lists.postgresql.org; Fri, 03 Mar 2023 11:21:50 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id EBB5232007E8; Fri, 3 Mar 2023 06:21:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 03 Mar 2023 06:21:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :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=1677842506; x= 1677928906; bh=m8Ckr03pbwCKHTJoSyvaSvAeCXnHDiVfQHz3Nfmi/V0=; b=I KY4MkfOtzYqfRrimeSYlvrmVJBuLyzEWZxEjFZYRXiyFfpTbv7qBAEGD7fksDoG3 arRQVfqYwIM3JPn6Z4lf4nrFQ/9PmcZ0MHZ7rP9duSsssbpM3b9iEM/qDmaqODOY mVDG8/Dc6zXJzS1176rM8+iWmh1q/nfVf4UTlD6k2pg41ZY/GApT1pE91UmistFh c1DG5k6SvGss1oeWGxNqGFPH773nVg9artL5zFI4jK2/3r8WWOoqFBT2YvNLBJPK 8nj1KfUOg6jZOnEF3xSD4DO7v4/nUSMHZXom9pD17YE/QzUwij75kyYeQRd1HL1B UXgey6mqjbPE1HERrjw+A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelledgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfggtggugfgjsehtke ertddttdejnecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduff dtffffheffhfejjefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhep vghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhr gh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 Mar 2023 06:21:46 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id AC49E67; Fri, 3 Mar 2023 12:21:44 +0100 (CET) Date: Fri, 3 Mar 2023 12:21:44 +0100 From: Alvaro Herrera To: Tom Lane Cc: ahodgson@simkin.ca, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17817: DISABLE TRIGGER ALL on a partitioned table with foreign key fails Message-ID: <20230303112144.tzw3yeos2c5w3q6y@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1554133.1677703918@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Mar-01, Tom Lane wrote: > Interestingly, although that commit was back-patched to v11, the failure > does not occur in pre-v15 branches. So what's different about v15? Hmm, I think f4566345cf40 probably explains that. > It's a reasonable bet that we're trying to look up the child trigger > using the name of its parent trigger ... but why are we searching by > name at all, rather than OID? Seems mighty failure-prone. I have no recollection of this, but we probably didn't have the OID originally. It may be that simply changing that is enough to solve the problem. I'll try to have a look later today, but I'm not sure I'll have time. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/