在我们的项目中,我们使用postgres和mongo,正在使用pg_column_size在postgres中查找blob列的max,min,avg大小,如何找到类型为document的列之一,我正在使用以下查询
select
pg_size_pretty(sum(pg_column_size(colu))) as total_size,
pg_size_pretty(avg(pg_column_size(colu))) as average_size,
min(pg_column_size(colu)) as min_size,
max(pg_column_size(colu)) as max_size,
sum(pg_column_size(colu)) * 100.0 / pg_total_relation_size('t') as percentage
from t;
他们在mongo中有什么相似之处吗?请帮助我们