Fix index attribute in invalidation scan

When setting up an index scan for invalidations, a table attribute
number was used instead of the corresponding index attribute
number. While the attribute numbers happened to be the same, it isn't
future proof to use the wrong attribute reference.
This commit is contained in:
Erik Nordström 2020-09-24 14:01:58 +02:00 committed by Erik Nordström
parent fb4fec1834
commit 5f31fa53b3

View File

@ -686,7 +686,7 @@ cagg_invalidations_scan_by_hypertable_init(ScanIterator *iterator, int32 cagg_hy
CONTINUOUS_AGGS_MATERIALIZATION_INVALIDATION_LOG_IDX);
ts_scan_iterator_scan_key_init(
iterator,
Anum_continuous_aggs_materialization_invalidation_log_materialization_id,
Anum_continuous_aggs_materialization_invalidation_log_idx_materialization_id,
BTEqualStrategyNumber,
F_INT4EQ,
Int32GetDatum(cagg_hyper_id));