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