create table j1(i int, im5 int,  im100 int, im1000 int);
insert into j1 select i, i%5, i%100, i%1000 from generate_series(1, 10000000)i;
create index j1_i_im5 on j1(i, im5);
create index j1_i_im100 on j1(i, im100);
analyze j1;
insert into j1 select 1, 1, 1, 1 from generate_series(1, 100000)i;
explain analyze select * from j1 where i = 1 and im5 = 2;

