From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: alberici@abinetworks.biz
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15482: Foreign keys to a partition (NOT A PARTITIONED) break the server
Date: Fri, 2 Nov 2018 12:36:49 -0300
Message-ID: <20181102153649.zibk2urkmlyxokqr@alvherre.pgsql> (raw)
In-Reply-To: <20181102151027.6lpr2ghnw3yp3qex@alvherre.pgsql>
On 2018-Nov-02, Alvaro Herrera wrote:
> On 2018-Nov-01, PG Bug reporting form wrote:
>
> > is it normal that server break (segmentation fault, recovery mode and
> > restart !) if i
>
> Of course not. Looking into it now.
I cannot reproduce it,
create table part (a int primary key, b int) partition by range (a);
create table part1 partition of part for values from (0) to (1000);
alter table part1 add foreign key (b) references part1 on update cascade on delete restrict;
insert into part1 values (1, null);
insert into part1 values (10, 1);
delete from part1 where a = 1;
This works fine (i.e. throws error that referencing row exists).
There must be some other element to your schema that I'm missing. What
is it? Also, if you got a core file, can you obtain a backtrace from
it?
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, alberici@abinetworks.biz
Subject: Re: BUG #15482: Foreign keys to a partition (NOT A PARTITIONED) break the server
In-Reply-To: <20181102153649.zibk2urkmlyxokqr@alvherre.pgsql>
References: <20181102151027.6lpr2ghnw3yp3qex@alvherre.pgsql> <20181102153649.zibk2urkmlyxokqr@alvherre.pgsql>
* 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