Show index usage postgres

Which indexes are actually being used and how often

psql -U myuser -d mydb -c "SELECT relname, indexrelname, idx_scan, idx_tup_read FROM pg_stat_user_indexes ORDER BY idx_scan DESC LIMIT 20;"
more postgres all 29 commands →