Updated SQL for analyzing Synapse PostgreSQL database stats (markdown)

Alexey Murz Korepov 2021-01-22 13:32:14 +03:00
parent ee061a9cc9
commit aa8444731b
1 changed files with 1 additions and 0 deletions

@ -39,6 +39,7 @@ SELECT relname, n_live_tup as rows
ORDER BY n_live_tup DESC ORDER BY n_live_tup DESC
LIMIT 20; LIMIT 20;
``` ```
This query is quick, but may be very approximate, for exact number of rows use `SELECT COUNT(*) FROM <table_name>`.
### Result example: ### Result example:
``` ```
state_groups_state - 161687170 state_groups_state - 161687170