I've been trying this query with and without constraint_exclusion turned on.
explain select * from a where i between 999 and 1001;