Restore RI trigger sanity check

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 815b20ae0c6ed61a431fba124c736152f0df5022
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2019-03-20T20:28:43Z
Releases: 12.0
Restore RI trigger sanity check

I unnecessarily removed this check in 3de241dba86f because I
misunderstood what the final representation of constraints across a
partitioning hierarchy was to be.  Put it back (in both branches).

Discussion: https://postgr.es/m/201901222145.t6wws6t6vrcu@alvherre.pgsql

Files

PathChange+/−
src/backend/utils/adt/ri_triggers.c modified +7 −0

Discussion