From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: a.roland@index.de
Subject: BUG #16153: foreign key update should probably move dependent rows in the case of tuple rerouting
Date: Thu, 05 Dec 2019 16:02:33 +0000
Message-ID: <16153-dd8a42806bf9cb79@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16153
Logged by: Arne Roland
Email address: a.roland@index.de
PostgreSQL version: 12.1
Operating system: debian
Description:
--instead of simply deleting them silently
create table a (id serial, primary key (id)) partition by range (id);
create table b (id serial, primary key (id)) partition by range (id);
alter table b add constraint a_fk foreign key (id) references a (id) on
delete cascade;
create table a1 partition of a for values from (1) to (2);
create table a2 partition of a for values from (2) to (3);
create table b1 partition of b for values from (1) to (2);
create table b2 partition of b for values from (2) to (3);
insert into a (id) values (1);
insert into b (id) values (1);
update a set id=2;
select * from b;
Regards
Arne
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, a.roland@index.de
Subject: Re: BUG #16153: foreign key update should probably move dependent rows in the case of tuple rerouting
In-Reply-To: <16153-dd8a42806bf9cb79@postgresql.org>
References: <16153-dd8a42806bf9cb79@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