From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ahodgson@simkin.ca
Subject: BUG #17817: DISABLE TRIGGER ALL on a partitioned table with foreign key fails
Date: Wed, 01 Mar 2023 19:21:44 +0000
Message-ID: <17817-31dfb7c2100d9f3d@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17817
Logged by: Alan Hodgson
Email address: ahodgson@simkin.ca
PostgreSQL version: 15.2
Operating system: linux-amd64
Description:
This works on 14.7. It fails on 15.2. The Ruby on Rails test suites use
DISABLE TRIGGER ALL extensively.
BEGIN;
CREATE TABLE test_fk (id serial primary key);
CREATE TABLE test_table (test serial, created_at timestamp not null, fk_id
int not null references test_fk(id)) PARTITION BY RANGE (created_at);
CREATE TABLE test_table_2017 PARTITION OF test_table FOR VALUES FROM
('2017-01-01') TO ('2018-01-01');
ALTER TABLE test_table DISABLE TRIGGER ALL;
ROLLBACK;
ERROR: trigger "RI_ConstraintTrigger_c_46838897" for table
"test_table_2017" does not exist
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, ahodgson@simkin.ca
Subject: Re: BUG #17817: DISABLE TRIGGER ALL on a partitioned table with foreign key fails
In-Reply-To: <17817-31dfb7c2100d9f3d@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