@@ -226,13 +226,13 @@ pglogical_tuple_find_replidx(EState *estate, PGLogicalTupleData *tuple,
226
226
ResultRelInfo * relinfo = estate -> es_result_relation_info ;
227
227
Relation idxrel = replindex_open (relinfo -> ri_RelationDesc ,
228
228
RowExclusiveLock );
229
- ScanKeyData index_key ;
229
+ ScanKeyData index_key [ INDEX_MAX_KEYS ] ;
230
230
bool found ;
231
231
232
- build_index_scan_key (& index_key , relinfo -> ri_RelationDesc , idxrel , tuple );
232
+ build_index_scan_key (index_key , relinfo -> ri_RelationDesc , idxrel , tuple );
233
233
234
234
/* Try to find the row. */
235
- found = find_index_tuple (& index_key , relinfo -> ri_RelationDesc , idxrel ,
235
+ found = find_index_tuple (index_key , relinfo -> ri_RelationDesc , idxrel ,
236
236
LockTupleExclusive , oldslot );
237
237
238
238
/* Don't release lock until commit. */
@@ -249,7 +249,7 @@ pglogical_tuple_find_conflict(EState *estate, PGLogicalTupleData *tuple,
249
249
TupleTableSlot * oldslot )
250
250
{
251
251
Oid conflict_idx = InvalidOid ;
252
- ScanKeyData index_key ;
252
+ ScanKeyData index_key [ INDEX_MAX_KEYS ] ;
253
253
int i ;
254
254
ResultRelInfo * relinfo ;
255
255
ItemPointerData conflicting_tid ;
@@ -275,12 +275,12 @@ pglogical_tuple_find_conflict(EState *estate, PGLogicalTupleData *tuple,
275
275
276
276
idxrel = relinfo -> ri_IndexRelationDescs [i ];
277
277
278
- if (build_index_scan_key (& index_key , relinfo -> ri_RelationDesc ,
279
- idxrel , tuple ))
278
+ if (build_index_scan_key (index_key , relinfo -> ri_RelationDesc ,
279
+ idxrel , tuple ))
280
280
continue ;
281
281
282
282
/* Try to find conflicting row. */
283
- found = find_index_tuple (& index_key , relinfo -> ri_RelationDesc ,
283
+ found = find_index_tuple (index_key , relinfo -> ri_RelationDesc ,
284
284
idxrel , LockTupleExclusive , oldslot );
285
285
286
286
/* Alert if there's more than one conflicting unique key, we can't
0 commit comments