Re: Fix foreign key constraint check for partitioned tables

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Hadi Moshayedi <hadi@moshayedi.net>, Edmund Horner <ejrh00@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-04-07T12:16:18Z
Lists: pgsql-hackers
On 2019-Apr-06, Tom Lane wrote:

> Hadi Moshayedi <hadi@moshayedi.net> writes:

> > This patch also changed the output of some of tests, i.e. previously
> > foreign key constraint failures errored on the partitioned table itself,
> > but now it shows the child table's name in the error message. I hope it is
> > ok.
> 
> Yeah, I think that's OK.  Interestingly, no such changes appear in
> HEAD's version of the regression test --- probably Alvaro's earlier
> changes had the same effect.

Yeah, they did.


-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. Fix failures in validateForeignKeyConstraint's slow path.