]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add object names to partition integrity violations.
authorAmit Kapila <akapila@postgresql.org>
Mon, 23 Mar 2020 02:39:15 +0000 (08:09 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 23 Mar 2020 02:39:15 +0000 (08:09 +0530)
commit33753ac9d7bc83dd9ccee9d5e678ed78a0725b4e
tree7e36f2908b8b926d036abec7c3b435213626385a
parent79dfa8afb296e1b0dcffbe674e04c5f25cc13dfd
Add object names to partition integrity violations.

All errors of SQLSTATE class 23 should include the name of an object
associated with the error in separate fields of the error report message.
We do this so that applications need not try to extract them from the
possibly-localized human-readable text of the message.

Reported-by: Chris Bandy
Author: Chris Bandy
Reviewed-by: Amit Kapila and Amit Langote
Discussion: https://postgr.es/m/0aa113a3-3c7f-db48-bcd8-f9290b2269ae@gmail.com
src/backend/commands/tablecmds.c
src/backend/executor/execMain.c
src/backend/executor/execPartition.c
src/backend/partitioning/partbounds.c
src/backend/utils/adt/ri_triggers.c