Correct type of waitMode variable in ExecInsertIndexTuples().
authorAndres Freund
Sat, 15 Aug 2015 15:02:47 +0000 (17:02 +0200)
committerAndres Freund
Sat, 15 Aug 2015 15:11:42 +0000 (17:11 +0200)
It was a bool, even though it should be CEOUC_WAIT_MODE. That's unlikely
to have a negative effect with the current definition of bool (char),
but it's definitely wrong.

Discussion: 20150812084351[email protected]
Backpatch: 9.5, where ON CONFLICT was merged

src/backend/executor/execIndexing.c

index bf385086c6252445a236d9bf35b8c24069e13dc7..f42bd8f1fb889e2435a2555383732cb3f55b63b4 100644 (file)
@@ -405,7 +405,7 @@ ExecInsertIndexTuples(TupleTableSlot *slot,
        if (indexInfo->ii_ExclusionOps != NULL)
        {
            bool        violationOK;
-           bool        waitMode;
+           CEOUC_WAIT_MODE waitMode;
 
            if (noDupErr)
            {