@@ -127,15 +127,15 @@ typedef enum
127127static bool check_exclusion_or_unique_constraint (Relation heap , Relation index ,
128128 IndexInfo * indexInfo ,
129129 ItemPointer tupleid ,
130- Datum * values , bool * isnull ,
130+ const Datum * values , const bool * isnull ,
131131 EState * estate , bool newIndex ,
132132 CEOUC_WAIT_MODE waitMode ,
133133 bool violationOK ,
134134 ItemPointer 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 ,
140140 EState * estate , IndexInfo * indexInfo ,
141141 Relation indexRelation );
@@ -684,7 +684,7 @@ static bool
684684check_exclusion_or_unique_constraint (Relation heap , Relation index ,
685685 IndexInfo * indexInfo ,
686686 ItemPointer tupleid ,
687- Datum * values , bool * isnull ,
687+ const Datum * values , const bool * isnull ,
688688 EState * estate , bool newIndex ,
689689 CEOUC_WAIT_MODE waitMode ,
690690 bool violationOK ,
910910check_exclusion_constraint (Relation heap , Relation index ,
911911 IndexInfo * indexInfo ,
912912 ItemPointer tupleid ,
913- Datum * values , bool * isnull ,
913+ const Datum * values , const bool * isnull ,
914914 EState * 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{
931931 int indnkeyatts = IndexRelationGetNumberOfKeyAttributes (index );
932932 int i ;
0 commit comments