PgHero: Easy Insights Into Your PostgreSQL Database
Join the DZone community and get the full member experience.
Join For FreeIf you're working with PostgreSQL and want to get a better a sense of what's going on under the hood in your database, here's something cool: PgHero, created by Andrew Kane on GitHub, offers a variety of insights into running queries, used and unused resources, and things like that. The GitHub page lists the following commands:
PgHero.running_queries PgHero.long_running_queries PgHero.index_usage PgHero.missing_indexes PgHero.unused_indexes PgHero.unused_tables PgHero.database_size PgHero.relation_sizes PgHero.index_hit_rate PgHero.table_hit_rate # kill queries PgHero.kill(pid) PgHero.kill_all
And the end result is something like this:
(Source: PgHero on GitHub)
You'll need PostgreSQL 9.2 or better to run PgHero, and it's definitely still a work in progress - there's a TODO section on the GitHub page, after all - but still worth checking out.
Opinions expressed by DZone contributors are their own.
Trending
-
A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
-
An Overview of Kubernetes Security Projects at KubeCon Europe 2023
-
VPN Architecture for Internal Networks
-
Avoiding Pitfalls With Java Optional: Common Mistakes and How To Fix Them [Video]
Comments