create table f (id serial primary key, did int, padding text);
create table d (id serial primary key, r double precision, padding text);

insert into f select i, 1+mod(i,ROWS_DIM), md5(i::text) from generate_series(1,ROWS_FACT) s(i);
insert into d select i, random(), md5(random()::text) from generate_series(1,ROWS_DIM) s(i);

alter table f set (parallel_workers = 4);

vacuum;
vacuum freeze;
analyze;
checkpoint;
