- Fixed error with suggested indexes
- Fixed error with
pg_replication_slots
- Fixed capture space stats
New features
- Query details page
- Added check for inactive replication slots
- Added
table_sizes
method for full table sizes - Added syntax highlighting
- Added
min_size
option toanalyze_tables
Breaking changes
- Methods now return symbols for keys instead of strings
- Methods raise
PgHero::NotEnabled
error when a feature isn’t enabled - Requires pg_query 0.9.0+ for suggested indexes
- Historical query stats require the
pghero_query_stats
table to havequery_hash
anduser
columns - Removed
with
option - use:
PgHero.databases[:database2].running_queries
instead of
PgHero.with(:database2) { PgHero.running_queries }
- Removed options from
connection_sources
method - Removed
locks
method
- Fixed migrations for Rails 5.1+
- Added
analyze
,analyze_tables
, andanalyze_all
methods - Added
pghero:analyze
rake task - Fixed system stats display issue
- Added support for Rails API
- Added support for Amazon STS
- Fixed replica check when
hot_standby = on
for primary
- Only show connection charts if there are connections
- Fixed duplicate indexes for multiple schemas
- Fixed display issue for queries without word break
- Removed maintenance tab for replicas
- Added 10 second timeout for explain
- No longer show autovacuum in long running queries
- Added charts for connections
- Added new config format
- Removed Chartkick gem dependency for charts
- Fixed error when primary database is not PostgreSQL
- Suggest GiST over GIN for
LIKE
queries again (seeing better performance)
- Suggest GIN over GiST for
LIKE
queries
- Removed mostly inactionable items (cache hit rate and index usage)
- Restored duplicate indexes to homepage
- Fixed issue with exact duplicate indexes
- Way better
blocked_queries
method
- Fixed Rails 5 error with multiple databases
- Fixed duplicate index detection with expressions
- Added support for PostgreSQL 9.6
- Fixed incorrect query start for live queries in transactions
- Better tune page for PostgreSQL 9.5
- Added user to query stats (opt-in)
- Added user to connection sources
- Added
capture_space_stats
method and rake task - Added visualize button to explain page
- Better charts for system stats
- Fixed
wrong constant name
error in development - Added different periods for system stats
- Removed external assets
- Updated for Rails 5
- Fixed error when
pg_stat_statements
not enabled inshared_libaries
- Improved performance of query stats
- Improved grouping of query stats
- Added
blocked_queries
method
- Added query hash for better query stats grouping
- Added sequence danger check
- Added
capture_query_stats
option to config
- Fixed user methods
- Added schema to queries
- Fixed deprecation warning on Rails 5
- Fix for pg_query >= 0.9.0
- Better suggested indexes
- Removed duplicate indexes noise
- Fixed partial and expression indexes
- Better suggested indexes
- Removed unused indexes noise
- Removed autovacuum danger noise
- Removed maintenance tab
- Fixed suggested indexes for replicas
- Fixed issue w/ suggested indexes where same table name exists in multiple schemas
- Added suggested indexes
- Added duplicate indexes
- Added maintenance tab
- Added load stats for RDS
- Added
table_caching
andindex_caching
methods - Added configurable cache hit rate threshold
- Show all connections in connections tab
- Added check for transaction ID wraparound failure
- Added check for autovacuum danger
- Fixed system stats
- Added invalid indexes
- Fixed RDS stats for aws-sdk 2
- Added
tables
option tocreate_user
method - Added ability to sort query stats by average_time and calls
- Only show unused indexes with no index scans in UI
- Added historical query stats
- Fixed connection bad errors
- Restore previous connection properly for nested with blocks
- Added analyze button to explain page
- Added explain button to live queries page
- More platforms!
- Support for multiple databases!
- Added
replica?
method - Added
replication_lag
method - Added
ssl_used?
method - Added
kill_long_running_queries
method - Added env vars for settings
- Added connections page
- Added message for insufficient privilege
- Added
ip
toconnection_sources
- Added tune page
- Removed minimum size for unused indexes
- Added
total_percent
toquery_stats
- Added
total_connections
- Added
connection_stats
for Amazon RDS
- Added support for pg_stat_statments on Amazon RDS
- Added
long_running_query_sec
,slow_query_ms
andslow_query_calls
options
- Added methods to create and drop users
- Added locks
- Added system stats for Amazon RDS
- Added code to remove unused indexes
- Require unused indexes to be at least 1 MB
- Use
pg_terminate_backend
to ensure queries are killed
- Reduced long running queries threshold to 1 minute
- Fixed duration
- Fixed wrapping
- Friendlier dependencies for JRuby
- Reverted
query_stats_available?
fix
- Fixed
query_stats_available?
method
- Added explain
- Added query stats
- Fixed CSS issues
- First major release