PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16153
PG Version12.1
OSdebian
Opened2019-12-05 16:02:33+00
Reported byArne Roland
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16153
Logged by:          Arne Roland
Email address:      (redacted)
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

Messages

DateAuthorSubject
2019-12-05 16:02:33+00PG Bug reporting formBUG #16153: foreign key update should probably move dependent rows in the case of tuple rerouting
2019-12-12 12:52:29+00Alvaro HerreraRe: BUG #16153: foreign key update should probably move dependent rows in the case of tuple rerouting
2020-07-13 13:14:38+00Arne RolandRe: BUG #16153: foreign key update should probably move dependent rows in the case of tuple rerouting