pghero 3.7.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -2
  3. data/LICENSE.txt +1 -1
  4. data/README.md +4 -3
  5. data/app/assets/javascripts/pghero/Chart.bundle.js +2228 -5320
  6. data/app/assets/javascripts/pghero/application.js +104 -68
  7. data/app/assets/javascripts/pghero/highlight.min.js +330 -341
  8. data/app/assets/javascripts/pghero/nouislider.js +64 -5
  9. data/app/assets/stylesheets/pghero/application.css +7 -1
  10. data/app/controllers/pg_hero/home_controller.rb +75 -41
  11. data/app/views/layouts/pg_hero/application.html.erb +1 -1
  12. data/app/views/pg_hero/home/_live_queries_table.html.erb +4 -2
  13. data/app/views/pg_hero/home/_queries_table.html.erb +8 -7
  14. data/app/views/pg_hero/home/_query_stats_slider.html.erb +1 -0
  15. data/app/views/pg_hero/home/_suggested_index.html.erb +3 -3
  16. data/app/views/pg_hero/home/explain.html.erb +2 -1
  17. data/app/views/pg_hero/home/index.html.erb +17 -18
  18. data/app/views/pg_hero/home/index_bloat.html.erb +2 -2
  19. data/app/views/pg_hero/home/live_queries.html.erb +7 -3
  20. data/app/views/pg_hero/home/queries.html.erb +31 -6
  21. data/app/views/pg_hero/home/show_query.html.erb +5 -5
  22. data/app/views/pg_hero/home/space.html.erb +5 -4
  23. data/app/views/pg_hero/home/tune.html.erb +1 -1
  24. data/lib/generators/pghero/templates/config.yml.tt +6 -1
  25. data/lib/generators/pghero/templates/query_stats.rb.tt +7 -1
  26. data/lib/generators/pghero/templates/upgrade_query_stats.rb.tt +23 -0
  27. data/lib/generators/pghero/upgrade_query_stats_generator.rb +19 -0
  28. data/lib/pghero/database.rb +6 -9
  29. data/lib/pghero/engine.rb +3 -10
  30. data/lib/pghero/methods/basic.rb +28 -27
  31. data/lib/pghero/methods/connections.rb +16 -32
  32. data/lib/pghero/methods/explain.rb +13 -20
  33. data/lib/pghero/methods/indexes.rb +8 -5
  34. data/lib/pghero/methods/kill.rb +4 -1
  35. data/lib/pghero/methods/maintenance.rb +14 -20
  36. data/lib/pghero/methods/queries.rb +7 -5
  37. data/lib/pghero/methods/query_stats.rb +264 -238
  38. data/lib/pghero/methods/replication.rb +9 -20
  39. data/lib/pghero/methods/sequences.rb +1 -1
  40. data/lib/pghero/methods/settings.rb +6 -11
  41. data/lib/pghero/methods/space.rb +11 -8
  42. data/lib/pghero/methods/suggested_indexes.rb +15 -16
  43. data/lib/pghero/methods/system.rb +6 -106
  44. data/lib/pghero/methods/tables.rb +7 -3
  45. data/lib/pghero/query.rb +8 -0
  46. data/lib/pghero/query_stats.rb +3 -0
  47. data/lib/pghero/version.rb +1 -1
  48. data/lib/pghero.rb +10 -42
  49. data/licenses/LICENSE-chart.js.txt +1 -1
  50. metadata +8 -8
  51. data/app/assets/javascripts/pghero/jquery.js +0 -10993
  52. data/lib/pghero/methods/users.rb +0 -95
  53. data/licenses/LICENSE-jquery.txt +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d8718118d2ebc63b25c38aa1942e09eb01816ab034161803258321c3bf31964
4
- data.tar.gz: eb64a910c289fb3aeec9675ee1737ccba0e553ca0234b67483888f6323e58c97
3
+ metadata.gz: d94ff090a5f14bb71bfa373b96d1e384968e2981fdb2bd897aceeaea9d7256fe
4
+ data.tar.gz: d2b03444934fe241cfd75506e850818acedbe4dc64083cfd1d29a7c1f1264c80
5
5
  SHA512:
6
- metadata.gz: f3728a465d113849d4de04f979f44ef770c77bc35b10a730b8018e8e9e13e7cccfac3e99aa44ce14763368e288540ecbe601ad0bde8f546da60754e7ed0ae743
7
- data.tar.gz: 8a0cc6584bc5b6e64b0ad5bf830c476d8b5857fcf5ec486b99e211d07d598bc895c8b0eb2ebda4348ede890fab9fe92a8c0de452c69713ef7e863637bc2c1c73
6
+ metadata.gz: b97f3b6f3ff66d8c5a628a23590940377dd6dcce53993997394ede41c49df7fa49a422aff8722d06d65b8e36203f5dfb3a81a6e415360e32cddc0cccf14db6b3
7
+ data.tar.gz: d8c42ca3cc1fd0e2b59d08af48992aa88e335f6ab95d03188fc59454d1f495bac3883a995c3cb0d5681e2a7c3a0698ab199ff6089a05a4d0e8038d1ca3a58fef
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 4.0.0 (2026-08-05)
2
+
3
+ - Reduced space for historical query stats
4
+ - Added `disable_kill` option to disable killing queries and connections
5
+ - Added `unused_index_megabytes` option to set minimum size for unused indexes
6
+ - Added copy button to explain visualize page
7
+ - Fixed error with unlogged sequences on replicas
8
+ - Dropped support for Postgres < 14
9
+ - Dropped support for pg_query < 6
10
+ - Dropped support for Sprockets < 4
11
+ - Dropped support for google-cloud-monitoring < 1
12
+ - Dropped support for system stats for Azure Database (Ruby SDK no longer supported)
13
+ - Dropped support for Ruby API
14
+ - Dropped support for Linux packages
15
+
16
+ ## 3.8.0 (2026-04-15)
17
+
18
+ - Updated tune page for latest PgTune
19
+ - Dropped support for Ruby < 3.3 and Rails < 7.2
20
+
1
21
  ## 3.7.0 (2025-05-26)
2
22
 
3
23
  - Dropped support for Linux package for Ubuntu 20.04
@@ -350,7 +370,7 @@ PgHero.with(:database2) { PgHero.running_queries }
350
370
  ## 1.4.0 (2016-08-24)
351
371
 
352
372
  - Updated for Rails 5
353
- - Fixed error when `pg_stat_statements` not enabled in `shared_libaries`
373
+ - Fixed error when `pg_stat_statements` not enabled in `shared_libraries`
354
374
 
355
375
  ## 1.3.2 (2016-08-03)
356
376
 
@@ -462,7 +482,7 @@ PgHero.with(:database2) { PgHero.running_queries }
462
482
 
463
483
  ## 0.1.7 (2014-11-12)
464
484
 
465
- - Added support for pg_stat_statments on Amazon RDS
485
+ - Added support for pg_stat_statements on Amazon RDS
466
486
  - Added `long_running_query_sec`, `slow_query_ms` and `slow_query_calls` options
467
487
 
468
488
  ## 0.1.6 (2014-10-09)
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2025 Andrew Kane, 2008-2014 Heroku (initial queries)
1
+ Copyright (c) 2014-2026 Andrew Kane, 2008-2014 Heroku (initial queries)
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -6,18 +6,19 @@ A performance dashboard for Postgres
6
6
 
7
7
  [![Screenshot](https://pghero.dokkuapp.com/assets/pghero-88a0d052.png)](https://pghero.dokkuapp.com/)
8
8
 
9
+ **PgHero 4.0 was recently released** - see how to upgrade [Docker](guides/Docker.md#upgrading) or [Rails](guides/Rails.md#upgrading)
10
+
9
11
  :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
10
12
 
11
13
  [![Build Status](https://github.com/ankane/pghero/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/pghero/actions)
12
14
 
13
15
  ## Documentation
14
16
 
15
- PgHero is available as a Docker image, Linux package, and Rails engine.
17
+ PgHero is available as a Docker image and Rails engine.
16
18
 
17
19
  Select your preferred method of installation to get started.
18
20
 
19
21
  - [Docker](guides/Docker.md)
20
- - [Linux](guides/Linux.md)
21
22
  - [Rails](guides/Rails.md)
22
23
 
23
24
  ## Related Projects
@@ -29,7 +30,7 @@ Select your preferred method of installation to get started.
29
30
 
30
31
  ## Credits
31
32
 
32
- A big thanks to [Craig Kerstiens](http://www.craigkerstiens.com/2013/01/10/more-on-postgres-performance/) and [Heroku](https://blog.heroku.com/archives/2013/5/10/more_insight_into_your_database_with_pgextras) for the initial queries and [Bootswatch](https://github.com/thomaspark/bootswatch) for the theme.
33
+ A big thanks to [Craig Kerstiens](https://www.craigkerstiens.com/2013/01/10/more-on-postgres-performance/) and [Heroku](https://blog.heroku.com/archives/2013/5/10/more_insight_into_your_database_with_pgextras) for the initial queries and [Bootswatch](https://github.com/thomaspark/bootswatch) for the theme.
33
34
 
34
35
  ## History
35
36