pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #17930: Regression in DISABLE TRIGGER ALL
3+ messages / 3 participants
[nested] [flat]
* BUG #17930: Regression in DISABLE TRIGGER ALL
@ 2023-05-12 07:52 PG Bug reporting form <noreply@postgresql.org>
2023-05-12 13:02 ` Re: BUG #17930: Regression in DISABLE TRIGGER ALL Olivier Chédru <ochedru@gmail.com>
2023-05-12 13:39 ` Re: BUG #17930: Regression in DISABLE TRIGGER ALL Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 3+ messages in thread
From: PG Bug reporting form @ 2023-05-12 07:52 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: ochedru@gmail.com
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #17930: Regression in DISABLE TRIGGER ALL
2023-05-12 07:52 BUG #17930: Regression in DISABLE TRIGGER ALL PG Bug reporting form <noreply@postgresql.org>
@ 2023-05-12 13:02 ` Olivier Chédru <ochedru@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Olivier Chédru @ 2023-05-12 13:02 UTC (permalink / raw)
To: ochedru@gmail.com; pgsql-bugs@lists.postgresql.org
My bad, this issue is a duplicate of bug #17817 and has been fixed in
PostgreSQL 15.3.
Sorry for the spam.
On Fri, May 12, 2023 at 9:53 AM PG Bug reporting form <
noreply@postgresql.org> wrote:
> 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.
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #17930: Regression in DISABLE TRIGGER ALL
2023-05-12 07:52 BUG #17930: Regression in DISABLE TRIGGER ALL PG Bug reporting form <noreply@postgresql.org>
@ 2023-05-12 13:39 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2023-05-12 13:39 UTC (permalink / raw)
To: ochedru@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org
PG Bug reporting form <noreply@postgresql.org> 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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2023-05-12 13:39 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-05-12 07:52 BUG #17930: Regression in DISABLE TRIGGER ALL PG Bug reporting form <noreply@postgresql.org>
2023-05-12 13:02 ` Olivier Chédru <ochedru@gmail.com>
2023-05-12 13:39 ` Tom Lane <tgl@sss.pgh.pa.us>
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