You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SET gp_create_table_random_default_distribution=off;
create or replacefunctionjunkloop(rel text, numiter int) returns intas $$
declare
sql text;
begin
for i in0..numiter loop
sql := $sql$ insert into $sql$ || rel || $sql$ select1, $sql$ || i::text|| $sql$, repeat('x', 1000) $sql$;
execute sql;
end loop;
return numiter;
end;
$$ language plpgsql;
droptable if exists vfao;
createtablevfao (a, b, c) with (appendonly=true, orientation=column) asselect1, i, repeat('x', 1000) from generate_series(1, 100)i distributed by (a);
createindexivfaoon vfao(b, c);
select junkloop('vfao', 300);
select pg_relation_size((select segrelid from pg_appendonly where relid ='vfao'::regclass)) from gp_dist_random('gp_id') where gp_segment_id =1;
Cloudberry Database version
No response
What happened
the result for now is
It looks like this value is too large.
What you think should happen instead
No response
How to reproduce
rerun the query.
Operating System
centos7
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: