Remove unused nbtree array advancement variable.

Remove a variable that is no longer in use following commit 9a2e2a28.
It's not immediately clear why there were no compiler warnings about
this oversight.

Author: Peter Geoghegan <pg@bowt.ie>
Backpatch-through: 18
pull/245/head
Peter Geoghegan 2 months ago
parent 26d1cd375f
commit 7a662a46eb
  1. 4
      src/backend/access/nbtree/nbtutils.c

@ -1449,7 +1449,6 @@ _bt_advance_array_keys(IndexScanDesc scan, BTReadPageState *pstate,
BTArrayKeyInfo *array = NULL;
Datum tupdatum;
bool required = false,
required_opposite_direction_only = false,
tupnull;
int32 result;
int set_elem = 0;
@ -1473,8 +1472,7 @@ _bt_advance_array_keys(IndexScanDesc scan, BTReadPageState *pstate,
(cur->sk_flags & (SK_BT_REQBKWD))) ||
(ScanDirectionIsBackward(dir) &&
(cur->sk_flags & (SK_BT_REQFWD)))))
has_required_opposite_direction_only =
required_opposite_direction_only = true;
has_required_opposite_direction_only = true;
}
/* Optimization: skip over known-satisfied scan keys */

Loading…
Cancel
Save