set maintenance_work_mem = '1GB';
create table r (a int not null, p text not null);
alter table r alter column p set storage main;
insert into r select x,string_agg(md5(x::text),'') from generate_series(1,8)x, generate_series(1,62)y group by x;

insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;

insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;
insert into r select * from r;

insert into r select * from r;
insert into r select * from r;
insert into r select * from r;

set max_parallel_maintenance_workers=64;
vacuum (freeze) r;

create index on r(a);

set enable_indexonlyscan = 0;
