pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ochedru@gmail.com
Subject: BUG #17930: Regression in DISABLE TRIGGER ALL
Date: Fri, 12 May 2023 07:52:13 +0000
Message-ID: <17930-73168e744fdf85c0@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17930
Logged by:          Olivier Chédru
Email address:      ochedru@gmail.com
PostgreSQL version: 15.3
Operating system:   Linux
Description:        

Hi!

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 seems to use a wrong trigger name. In this case,
RI_ConstraintTrigger_c_20196703 is the name of a trigger defined on the
parent table b.

Thank you.



view thread (3+ messages)  latest in thread

Message-ID: <17930-73168e744fdf85c0@postgresql.org>
Permalink:  ../17930-73168e744fdf85c0@postgresql.org/
Also on:    postgresql.org/message-id/17930-73168e744fdf85c0@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, ochedru@gmail.com
  Subject: Re: BUG #17930: Regression in DISABLE TRIGGER ALL
  In-Reply-To: <17930-73168e744fdf85c0@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox