liang8283 commented on issue #1926:
URL: https://github.com/apache/cloudberry/issues/1926#issuecomment-5490933566
pg_stat_statement cannot be used for cloudberry because it only saves the
performance statistics for a single node. It cannot summarize the stats across
all the nodes for cloudberry.
The open source version of cloudberry does not have built-in tools for
monitoring IO. Here are some alternatives for your reference:
- If the Resource Group is enabled, you can get the IO stats via the query:
`SELECT * FROM gp_toolkit.gp_resgroup_iostats_per_host;`
- If you mostly use heap tables, the view `pg_statio_all_tables` can also be
used.
```
SELECT relname,
sum(heap_blks_read) AS heap_read,
sum(heap_blks_hit) AS heap_hit,
sum(idx_blks_read) AS idx_read
FROM gp_dist_random('pg_statio_all_tables')
GROUP BY relname
ORDER BY heap_read DESC limit 10;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]