Skip to content

Commit

Permalink
Fix for citus table size.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevan committed Nov 4, 2022
1 parent f36fa0f commit e3747ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/citus.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ SELECT p.logicalrelid::oid::int AS table_oid,
END AS citus_table_type,
COALESCE(column_to_column_name(p.logicalrelid, p.partkey), ''::text) AS distribution_column,
p.colocationid AS colocation_id,
citus_total_relation_size(p.logicalrelid, fail_on_error => false) AS table_size,
COALESCE(citus_total_relation_size(p.logicalrelid, fail_on_error => false), 0::bigint) AS table_size,
( SELECT count(*) AS count
FROM pg_dist_shard
WHERE pg_dist_shard.logicalrelid::oid = p.logicalrelid::oid) AS shard_count,
Expand Down

0 comments on commit e3747ab

Please sign in to comment.