Diagnose database health from the CLI
The pscale CLI now includes two read-only diagnostic commands for Postgres and Vitess databases:
pscale insightsโ server-side analysis of production traffic:insights queriesโ top queries ranked by total time, count, p99 latency, rows read, and moreinsights errorsโ failing query patterns with error messagesinsights anomaliesโ detected resource anomalies (CPU, memory, IOPS, rows)insights recommendationsโ schema recommendations with ready-to-apply DDL
pscale inspectโ live point-in-time checks over a read-only connection (same credential model aspscale sql): table and index sizes, unused and redundant indexes, long-running queries, locks, bloat, vacuum stats, replication slots, and more. Runinspect allfor a combined report, or pick individual checks likelocksortable-sizes.
Both commands support --format json (and csv for individual inspect checks) for scripting and agents.