mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Improve INSERT .. ON CONFLICT error message.
Peter Geoghegan, reviewed by me.
This commit is contained in:
@ -535,8 +535,8 @@ ExecCheckIndexConstraints(TupleTableSlot *slot,
|
||||
|
||||
if (!indexRelation->rd_index->indimmediate)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("ON CONFLICT does not support deferred unique constraints/exclusion constraints as arbiters"),
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
errmsg("ON CONFLICT does not support deferrable unique constraints/exclusion constraints as arbiters"),
|
||||
errtableconstraint(heapRelation,
|
||||
RelationGetRelationName(indexRelation))));
|
||||
|
||||
|
Reference in New Issue
Block a user