Added relation name in error messages for constraint checks.

Amit Kapila <akapila@postgresql.org>

Commit: 05f18c6b6b6e4b44302ee20a042cedc664532aa2
Author: Amit Kapila <akapila@postgresql.org>
Date: 2020-01-28T02:18:10Z
Releases: 13.0
Added relation name in error messages for constraint checks.

This gives more information to the user about the error and it makes such
messages consistent with the other similar messages in the code.

Reported-by: Simon Riggs
Author: Mahendra Singh and Simon Riggs
Reviewed-by: Beena Emerson and Amit Kapila
Discussion: https://postgr.es/m/CANP8+j+7YUvQvGxTrCiw77R23enMJ7DFmyA3buR+fa2pKs4XhA@mail.gmail.com

Files

Discussion