| From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
|---|---|
| To: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
| Cc: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Foreign keys and partitioned tables |
| Date: | 2018-04-03 20:47:23 |
| Message-ID: | 20180403204723.fqte755nukgm42uf@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Alvaro Herrera wrote:
> While adding some more tests for the "action" part (i.e. updates and
> deletes on the referenced table) I came across a bug that was causing
> the server to crash ... but it's actually a preexisting bug in an
> assert. The fix is in 0001.
Yeah, it's a live bug that only manifests on Assert-enabled builds.
Here's an example:
create table pk (a int, b int, c int, d int primary key);
create table fk (d int references pk);
insert into pk values (1, 2, 3, 4);
insert into fk values (4);
delete from pk;
Will fix
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Banck | 2018-04-03 20:48:15 | Re: pgsql: Validate page level checksums in base backups |
| Previous Message | TipTop Labs | 2018-04-03 20:13:05 | Re: BUG #14999: pg_rewind corrupts control file global/pg_control |