Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b8dd19af
Commit
b8dd19af
authored
Oct 13, 2015
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve INSERT .. ON CONFLICT error message.
Peter Geoghegan, reviewed by me.
parent
869f693a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/backend/executor/execIndexing.c
src/backend/executor/execIndexing.c
+2
-2
src/test/regress/output/constraints.source
src/test/regress/output/constraints.source
+1
-1
No files found.
src/backend/executor/execIndexing.c
View file @
b8dd19af
...
...
@@ -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 deferr
ed
unique constraints/exclusion constraints as arbiters"
),
(
errcode
(
ERRCODE_
OBJECT_NOT_IN_PREREQUISITE_STATE
),
errmsg
(
"ON CONFLICT does not support deferr
able
unique constraints/exclusion constraints as arbiters"
),
errtableconstraint
(
heapRelation
,
RelationGetRelationName
(
indexRelation
))));
...
...
src/test/regress/output/constraints.source
View file @
b8dd19af
...
...
@@ -643,7 +643,7 @@ INSERT INTO deferred_excl VALUES(1); -- fail
ERROR: conflicting key value violates exclusion constraint "deferred_excl_con"
DETAIL: Key (f1)=(1) conflicts with existing key (f1)=(1).
INSERT INTO deferred_excl VALUES(1) ON CONFLICT ON CONSTRAINT deferred_excl_con DO NOTHING; -- fail
ERROR: ON CONFLICT does not support deferr
ed
unique constraints/exclusion constraints as arbiters
ERROR: ON CONFLICT does not support deferr
able
unique constraints/exclusion constraints as arbiters
BEGIN;
INSERT INTO deferred_excl VALUES(2); -- no fail here
COMMIT; -- should fail here
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment