Useful Queries:
- Query to verify the list of segments in a Greenplum system
select * from gp_segment_configuration;
Result:
Column Value
|
Description
|
Content = -1
|
Master Node
|
Content = 0 - n
|
Slave segments
|
- Query to verify Skewing in a database
select * from gp_toolkit.gp_skew_coefficients;
- Query to verify the number of records in each segment of a table
select gp_segment_id, count(*)
from zc.zctimesheet1
group by gp_segment_id
order by gp_segment_id;
- Query to verify the size of a database/ relation (table)
select
pg_size_pretty(pg_database_size('DistributionTest'));
select
pg_size_pretty(pg_relation_size('zc.zctimesheet1'));
0 comments:
Post a Comment