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 1pxSzH-0005Yb-SR for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2023 13:39:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pxSzG-00088Q-OS for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2023 13:39:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pxSzG-00088H-GG for pgsql-bugs@lists.postgresql.org; Fri, 12 May 2023 13:39:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pxSz9-002DLW-J1 for pgsql-bugs@lists.postgresql.org; Fri, 12 May 2023 13:39:09 +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 34CDd0ZO1315367; Fri, 12 May 2023 09:39:00 -0400 From: Tom Lane To: ochedru@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17930: Regression in DISABLE TRIGGER ALL In-reply-to: <17930-73168e744fdf85c0@postgresql.org> References: <17930-73168e744fdf85c0@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 12 May 2023 07:52:13 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1315365.1683898740.1@sss.pgh.pa.us> Date: Fri, 12 May 2023 09:39:00 -0400 Message-ID: <1315366.1683898740@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > The following script creates a partition table with a foreign key and works > fine on PostgreSQL 14: > begin; > create table a(id int primary key); > create table b(id int primary key, a_id int not null references a(id)) > partition by range(id); > create table b_default(like b including defaults including constraints); > alter table b attach partition b_default default; > alter table b disable trigger all; > commit; > On PostgresSQL 15, it fails on DISABLE TRIGGER ALL: > ERROR: trigger "RI_ConstraintTrigger_c_20196703" for table "b_default" does > not exist It works for me with 15.3. I don't think you are actually running 15.3 (i.e., yesterday's minor release), because this symptom matches a bug we fixed in 15.3. regards, tom lane