Обсуждение: pgsql: Add object names to partition integrity violations.

Поиск
Список
Период
Сортировка

pgsql: Add object names to partition integrity violations.

От
Amit Kapila
Дата:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33753ac9d7bc83dd9ccee9d5e678ed78a0725b4e

Modified Files
--------------
src/backend/commands/tablecmds.c      | 6 ++++--
src/backend/executor/execMain.c       | 3 ++-
src/backend/executor/execPartition.c  | 3 ++-
src/backend/partitioning/partbounds.c | 3 ++-
src/backend/utils/adt/ri_triggers.c   | 3 ++-
5 files changed, 12 insertions(+), 6 deletions(-)