@@ -127,15 +127,15 @@ typedef enum
127127static bool check_exclusion_or_unique_constraint (Relation heap ,Relation index ,
128128IndexInfo * indexInfo ,
129129ItemPointer tupleid ,
130- Datum * values ,bool * isnull ,
130+ const Datum * values ,const bool * isnull ,
131131EState * estate ,bool newIndex ,
132132CEOUC_WAIT_MODE waitMode ,
133133bool violationOK ,
134134ItemPointer conflictTid );
135135
136- static bool index_recheck_constraint (Relation index ,Oid * constr_procs ,
137- Datum * existing_values ,bool * existing_isnull ,
138- Datum * new_values );
136+ static bool index_recheck_constraint (Relation index ,const Oid * constr_procs ,
137+ const Datum * existing_values ,const bool * existing_isnull ,
138+ const Datum * new_values );
139139static bool index_unchanged_by_update (ResultRelInfo * resultRelInfo ,
140140EState * estate ,IndexInfo * indexInfo ,
141141Relation indexRelation );
@@ -684,7 +684,7 @@ static bool
684684check_exclusion_or_unique_constraint (Relation heap ,Relation index ,
685685IndexInfo * indexInfo ,
686686ItemPointer tupleid ,
687- Datum * values ,bool * isnull ,
687+ const Datum * values ,const bool * isnull ,
688688EState * estate ,bool newIndex ,
689689CEOUC_WAIT_MODE waitMode ,
690690bool violationOK ,
910910check_exclusion_constraint (Relation heap ,Relation index ,
911911IndexInfo * indexInfo ,
912912ItemPointer tupleid ,
913- Datum * values ,bool * isnull ,
913+ const Datum * values ,const bool * isnull ,
914914EState * estate ,bool newIndex )
915915{
916916(void )check_exclusion_or_unique_constraint (heap ,index ,indexInfo ,tupleid ,
@@ -924,9 +924,9 @@ check_exclusion_constraint(Relation heap, Relation index,
924924 * exclusion condition against the new_values. Returns true if conflict.
925925 */
926926static bool
927- index_recheck_constraint (Relation index ,Oid * constr_procs ,
928- Datum * existing_values ,bool * existing_isnull ,
929- Datum * new_values )
927+ index_recheck_constraint (Relation index ,const Oid * constr_procs ,
928+ const Datum * existing_values ,const bool * existing_isnull ,
929+ const Datum * new_values )
930930{
931931int indnkeyatts = IndexRelationGetNumberOfKeyAttributes (index );
932932int i ;