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 1pY9yV-0002Hl-F3 for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Mar 2023 18:17:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pY9yT-0003Kz-3k for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Mar 2023 18:17:45 +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 1pY9yS-0003Kp-6a for pgsql-bugs@lists.postgresql.org; Fri, 03 Mar 2023 18:17:44 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pY9yP-0008CG-3i for pgsql-bugs@lists.postgresql.org; Fri, 03 Mar 2023 18:17:43 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 4A44A320034E; Fri, 3 Mar 2023 13:17:38 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 03 Mar 2023 13:17:38 -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=1677867457; x= 1677953857; bh=dYXmlleFQLzetCbtHRJjoWu1uiD7/nNHoW5yop1NLZk=; b=p gBHmz7mTTd4IbVB/2TmbpZCmCkpyPXbvXAuIJgSjOupQYBJdP0kINuDFUFk3vQXY Ueg2QnCwm3sIUDsf3o+m/LvlTOpRyWIVAFF/rZg9RUJr5eCS34uwNw0RNm0JcbIG gKg/Rxs2vlws8dCm1tXuZKTEqEY7rqEsUOHCZCS+F72VLOphI4LGJl38ZJwUsKck HC47VY4YRHNxUjPgAOgyHZOYTk4p6w/gBHXy81xqoLBPEbBxjCw65kMAXktz+U2E xaYdR7y3ffp+XuFWUfFTZiX9gSy5ceOiDO4HFepxyNv39Oou28Z84605xuZ8zZ+f 5n12WOlneZLYsS3z8vK1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelledguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkgggtugfgjgesth ekredttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffud fftdffffehfffhjeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhn pegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdho rhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 Mar 2023 13:17:36 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4688E67; Fri, 3 Mar 2023 19:17:35 +0100 (CET) Date: Fri, 3 Mar 2023 19:17:35 +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: <20230303181735.quhcvh2igowmxbs7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2473213.1677858640@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Mar-03, Tom Lane wrote: > I wrote: > > I can throw together a patch for what I was thinking of. > > Basically just make the recursive steps match on tgparentid instead > of name, like this. Thank you, looks sane to me. > I wonder whether anyplace else is making a similar mistake? Although > there's not much we will let you do to a foreign key trigger, so it > might not matter for anything else. Right ... triggers created in the normal way would have matching names, so the previous code would work correctly. I wonder how come this problem took so long to be detected with Ruby on Rails; it's been in released 13.x and 14.x for seven months now. I suppose it would be very useful if the Ruby on Rails community would run their tests more often on new Postgres versions (or even on the tip of stable branches). -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ Y una voz del caos me habló y me dijo "Sonríe y sé feliz, podría ser peor". Y sonreí. Y fui feliz. Y fue peor.