create table t (a uuid);
insert into t select md5(random()::text)::uuid from generate_series(1,10000000) s(i);
-- insert into t select md5(random()::text)::uuid from generate_series(1,100000000) s(i);
-- insert into t select md5(random()::text)::uuid from generate_series(1,1000000000) s(i);

set maintenance_work_mem = '256MB';
set max_parallel_maintenance_workers = 4;

vacuum analyze t;

create index on t(a);
create index on t(a);
create index on t(a);
create index on t(a);
create index on t(a);

vacuum analyze t;

\timing on

\di

set enable_insert_prefetch = off;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

set enable_insert_prefetch = on;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

drop index t_a_idx4;

\di

set enable_insert_prefetch = off;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

set enable_insert_prefetch = on;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

drop index t_a_idx3;

\di

set enable_insert_prefetch = off;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

set enable_insert_prefetch = on;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

drop index t_a_idx2;

\di

set enable_insert_prefetch = off;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

set enable_insert_prefetch = on;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

drop index t_a_idx1;

\di

set enable_insert_prefetch = off;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;

set enable_insert_prefetch = on;

insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,1000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,10000) s(i);

insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);
insert into t select md5(random()::text)::uuid from generate_series(1,100000) s(i);

with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,1000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,10000) s(i) order by 1) insert into t select * from d;

with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
with d as (select md5(random()::text)::uuid from generate_series(1,100000) s(i) order by 1) insert into t select * from d;
