create table t(a int); insert into t select 1 from generate_series(1,10); create index on t (a desc); set enable_seqscan = false; select * from t where a IN (1,2) and a IN (1,2,3);
It's triggered when a scankey's strategy is set to invalid. While for a descending ordered column,
the strategy needs to get fixed to its commute strategy. That doesn't work if the strategy is invalid.