Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Heroku
  3. heroku-pg-extras

heroku-pg-extras

MITTypeScriptv2.0.1

A Heroku CLI plugin providing shortcuts to common Postgres introspection queries for performance analysis.

GitHubGitHub
1.4k stars104 forks0 contributors

What is heroku-pg-extras?

Heroku PG Extras is a Heroku CLI plugin that provides a collection of commands for introspecting and diagnosing Heroku Postgres database performance. It simplifies accessing PostgreSQL system statistics—like cache hit ratios, index usage, locks, and query performance—helping developers identify bottlenecks and optimize their database workloads without manual SQL queries.

Target Audience

Developers and DevOps engineers who manage applications on Heroku with Postgres databases and need to monitor performance, troubleshoot issues, or optimize queries.

Value Proposition

It offers a curated, command-line interface to essential PostgreSQL diagnostic data specifically for Heroku's platform, saving time over writing raw SQL and making performance insights immediately actionable.

Overview

A heroku plugin for awesome pg:* commands that are also great and fun and super.

Use Cases

Best For

  • Identifying slow or inefficient queries in a Heroku Postgres database
  • Analyzing index usage and finding unused indexes to improve write performance
  • Diagnosing database lock contention and blocking queries
  • Monitoring buffer cache efficiency to determine if a database plan needs scaling
  • Investigating table bloat and vacuum statistics for maintenance tuning
  • Getting a quick size breakdown of tables and indexes

Not Ideal For

  • Teams using PostgreSQL on platforms other than Heroku (e.g., AWS RDS, self-hosted instances)
  • Projects requiring real-time, automated monitoring dashboards with alerts
  • Developers who prefer graphical database management tools over command-line interfaces

Pros & Cons

Pros

Comprehensive Query Analysis

Commands like `pg:outliers` and `pg:calls` provide immediate visibility into slow and frequently executed queries, listing execution times and call counts without manual SQL writing.

Lock Contention Diagnostics

With `pg:locks` and `pg:blocking`, it quickly identifies queries holding exclusive locks, helping resolve database hangs and contention issues directly from the CLI.

Database Size and Health Metrics

Offers commands for table sizes, index usage, and bloat estimation (e.g., `pg:table-size`, `pg:bloat`), essential for maintenance and scaling decisions on Heroku Postgres.

Heroku-Specific Optimizations

Tailored for Heroku's platform, with insights like cache hit ratios from `pg:cache-hit` to determine if database plans need scaling, making performance tuning actionable.

Cons

Platform Dependency

Exclusively designed for Heroku Postgres, so it cannot be used with self-hosted or other cloud PostgreSQL instances, limiting its utility outside Heroku.

No Graphical Interface

All interactions are through the command line, which may be less accessible for teams accustomed to visual tools like pgAdmin or dashboard-based monitoring.

Beta Status Risks

Marked as beta software in the README, it might have undiscovered bugs, incomplete features, or lack the stability and support of production-ready tools.

Frequently Asked Questions

Quick Stats

Stars1,356
Forks104
Contributors0
Open Issues6
Last commit10 days ago
CreatedSince 2012

Tags

#devops#database-monitoring#performance-analysis#cli-tool#query-optimization#postgresql#heroku

Included in

Heroku315
Auto-fetched 14 hours ago

Related Projects

heroku-accountsheroku-accounts

Multiple account management for Heroku

Stars1,228
Forks62
Last commit10 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub