Added relation name in error messages for constraint checks.
Amit Kapila <akapila@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +13 −8 |
| src/backend/executor/execMain.c | modified | +3 −2 |
| src/test/regress/expected/alter_table.out | modified | +38 −38 |
| src/test/regress/expected/copy2.out | modified | +1 −1 |
| src/test/regress/expected/create_table_like.out | modified | +1 −1 |
| src/test/regress/expected/create_table.out | modified | +1 −1 |
| src/test/regress/expected/domain.out | modified | +4 −4 |
| src/test/regress/expected/generated.out | modified | +4 −4 |
| src/test/regress/expected/identity.out | modified | +2 −2 |
| src/test/regress/expected/index_including.out | modified | +2 −2 |
| src/test/regress/expected/inherit.out | modified | +3 −3 |
| src/test/regress/expected/insert.out | modified | +1 −1 |
| src/test/regress/expected/privileges.out | modified | +3 −3 |
| src/test/regress/expected/reloptions.out | modified | +2 −2 |
| src/test/regress/expected/sequence.out | modified | +1 −1 |
| src/test/regress/expected/vacuum.out | modified | +1 −1 |
| src/test/regress/output/constraints.source | modified | +2 −2 |
Discussion
- Error message inconsistency 30 messages · 2019-03-22 → 2020-01-30