pghero 3.1.0 → 3.7.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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +78 -1
  3. data/LICENSE.txt +1 -1
  4. data/README.md +2 -2
  5. data/app/assets/javascripts/pghero/Chart.bundle.js +23379 -19766
  6. data/app/assets/javascripts/pghero/application.js +27 -12
  7. data/app/assets/javascripts/pghero/chartkick.js +834 -764
  8. data/app/assets/javascripts/pghero/highlight.min.js +440 -0
  9. data/app/assets/javascripts/pghero/jquery.js +318 -197
  10. data/app/assets/javascripts/pghero/nouislider.js +676 -1066
  11. data/app/assets/stylesheets/pghero/application.css +108 -2
  12. data/app/assets/stylesheets/pghero/nouislider.css +4 -10
  13. data/app/controllers/pg_hero/home_controller.rb +53 -16
  14. data/app/helpers/pg_hero/home_helper.rb +3 -3
  15. data/app/views/layouts/pg_hero/application.html.erb +3 -3
  16. data/app/views/pg_hero/home/_connections_table.html.erb +1 -1
  17. data/app/views/pg_hero/home/_live_queries_table.html.erb +8 -8
  18. data/app/views/pg_hero/home/_queries_table.html.erb +5 -5
  19. data/app/views/pg_hero/home/_query_stats_slider.html.erb +8 -8
  20. data/app/views/pg_hero/home/_suggested_index.html.erb +6 -5
  21. data/app/views/pg_hero/home/connections.html.erb +12 -12
  22. data/app/views/pg_hero/home/explain.html.erb +2 -2
  23. data/app/views/pg_hero/home/index.html.erb +22 -20
  24. data/app/views/pg_hero/home/index_bloat.html.erb +6 -6
  25. data/app/views/pg_hero/home/maintenance.html.erb +3 -3
  26. data/app/views/pg_hero/home/queries.html.erb +7 -5
  27. data/app/views/pg_hero/home/relation_space.html.erb +4 -4
  28. data/app/views/pg_hero/home/show_query.html.erb +35 -31
  29. data/app/views/pg_hero/home/space.html.erb +50 -46
  30. data/app/views/pg_hero/home/system.html.erb +18 -18
  31. data/app/views/pg_hero/home/tune.html.erb +2 -2
  32. data/lib/generators/pghero/query_stats_generator.rb +1 -0
  33. data/lib/generators/pghero/space_stats_generator.rb +1 -0
  34. data/lib/pghero/database.rb +2 -2
  35. data/lib/pghero/engine.rb +4 -3
  36. data/lib/pghero/methods/basic.rb +26 -31
  37. data/lib/pghero/methods/connections.rb +4 -4
  38. data/lib/pghero/methods/constraints.rb +1 -1
  39. data/lib/pghero/methods/explain.rb +4 -3
  40. data/lib/pghero/methods/indexes.rb +8 -8
  41. data/lib/pghero/methods/kill.rb +1 -1
  42. data/lib/pghero/methods/maintenance.rb +3 -3
  43. data/lib/pghero/methods/queries.rb +2 -2
  44. data/lib/pghero/methods/query_stats.rb +34 -24
  45. data/lib/pghero/methods/replication.rb +2 -2
  46. data/lib/pghero/methods/sequences.rb +10 -5
  47. data/lib/pghero/methods/settings.rb +8 -1
  48. data/lib/pghero/methods/space.rb +20 -14
  49. data/lib/pghero/methods/suggested_indexes.rb +14 -7
  50. data/lib/pghero/methods/system.rb +12 -6
  51. data/lib/pghero/methods/tables.rb +4 -5
  52. data/lib/pghero/version.rb +1 -1
  53. data/lib/pghero.rb +35 -36
  54. data/lib/tasks/pghero.rake +11 -1
  55. data/licenses/LICENSE-chart.js.txt +1 -1
  56. data/licenses/LICENSE-date-fns.txt +21 -20
  57. data/licenses/LICENSE-kurkle-color.txt +9 -0
  58. metadata +8 -11
  59. data/app/assets/javascripts/pghero/highlight.pack.js +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb0dc9f78c0e8095569b48f1d6d48235238ea92efa8a94326f97639d2fa30d38
4
- data.tar.gz: 452e6f781c32bcb4d6b68a6b4bda62425023587c7779a88f34c0905b09ac93c9
3
+ metadata.gz: 4d8718118d2ebc63b25c38aa1942e09eb01816ab034161803258321c3bf31964
4
+ data.tar.gz: eb64a910c289fb3aeec9675ee1737ccba0e553ca0234b67483888f6323e58c97
5
5
  SHA512:
6
- metadata.gz: f22dc29263e1b6d7c008747bc6907dd125d3d8f53141c4ad030d6acd19ef0d501abeb1db148f190115ad99d4c6a6910cbb7d4b1239a14b77c8a838ae204beb17
7
- data.tar.gz: 628a7ffcafd87be24626ffdd171fb4c00a77367548b6e47693cd18265177918a774f8ac02af4c27c15dfc712b41fc88c50269777b868eab412ecc954d6442fd5
6
+ metadata.gz: f3728a465d113849d4de04f979f44ef770c77bc35b10a730b8018e8e9e13e7cccfac3e99aa44ce14763368e288540ecbe601ad0bde8f546da60754e7ed0ae743
7
+ data.tar.gz: 8a0cc6584bc5b6e64b0ad5bf830c476d8b5857fcf5ec486b99e211d07d598bc895c8b0eb2ebda4348ede890fab9fe92a8c0de452c69713ef7e863637bc2c1c73
data/CHANGELOG.md CHANGED
@@ -1,3 +1,66 @@
1
+ ## 3.7.0 (2025-05-26)
2
+
3
+ - Dropped support for Linux package for Ubuntu 20.04
4
+ - Dropped support for Ruby < 3.2 and Rails < 7.1
5
+
6
+ ## 3.6.2 (2025-03-21)
7
+
8
+ - Improved query in `sequences` method
9
+
10
+ ## 3.6.1 (2024-10-14)
11
+
12
+ - Fixed error when Propshaft is installed but not used
13
+
14
+ ## 3.6.0 (2024-07-10)
15
+
16
+ - Improved CSP support
17
+ - Dropped support for Linux packages for Ubuntu 18.04, CentOS 7, and SLES 12
18
+ - Dropped support for Ruby < 3.1 and Rails < 6.1
19
+
20
+ ## 3.5.0 (2024-05-21)
21
+
22
+ - Added materialized views to space page and `relation_sizes` method
23
+ - Added Linux package for Debian 12
24
+ - Fixed error with `slow_queries` method
25
+
26
+ ## 3.4.1 (2024-02-07)
27
+
28
+ - Added current stats to query details page
29
+ - Improved tune page for latest PgTune
30
+
31
+ ## 3.4.0 (2023-11-28)
32
+
33
+ - Added support for explaining normalized queries with Postgres 16
34
+ - Added Docker image for `linux/arm64`
35
+
36
+ ## 3.3.4 (2023-09-05)
37
+
38
+ - Fixed support for aliases in config file
39
+
40
+ ## 3.3.3 (2023-04-18)
41
+
42
+ - Fixed error with system stats for Azure Database
43
+
44
+ ## 3.3.2 (2023-04-12)
45
+
46
+ - Fixed error with suggested indexes and empty statements
47
+
48
+ ## 3.3.1 (2023-03-15)
49
+
50
+ - Fixed error with Uglifier
51
+
52
+ ## 3.3.0 (2023-03-11)
53
+
54
+ - Improved handling of lock timeouts
55
+ - Improved syntax highlighting
56
+
57
+ ## 3.2.0 (2023-02-21)
58
+
59
+ - Added support for pg_query 4
60
+ - Added `pghero:clean_space_stats` rake task
61
+ - Added support for specifying retention period with `clean_query_stats` and `clean_space_stats`
62
+ - Removed reset button when historical query stats are enabled
63
+
1
64
  ## 3.1.0 (2023-01-04)
2
65
 
3
66
  - Fixed explain error message leaking data - [more info](https://github.com/ankane/pghero/issues/439)
@@ -437,4 +500,18 @@ PgHero.with(:database2) { PgHero.running_queries }
437
500
 
438
501
  ## 0.1.0 (2014-07-23)
439
502
 
440
- - First major release
503
+ - Improved explanations
504
+ - Updated design
505
+
506
+ ## 0.0.3 (2014-07-22)
507
+
508
+ - Fixed `missing_indexes` method
509
+
510
+ ## 0.0.2 (2014-07-21)
511
+
512
+ - Added `unused_tables` method
513
+ - Added `database_size` method
514
+
515
+ ## 0.0.1 (2014-07-21)
516
+
517
+ - First release
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2023 Andrew Kane, 2008-2014 Heroku (initial queries)
1
+ Copyright (c) 2014-2025 Andrew Kane, 2008-2014 Heroku (initial queries)
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -4,11 +4,11 @@ A performance dashboard for Postgres
4
4
 
5
5
  [See it in action](https://pghero.dokkuapp.com/)
6
6
 
7
- [![Screenshot](https://pghero.dokkuapp.com/assets/pghero-ebb9c8e11434fd0e4ead81db88fe255b29cbbc845ec315b79e6c5e25015bc921.png)](https://pghero.dokkuapp.com/)
7
+ [![Screenshot](https://pghero.dokkuapp.com/assets/pghero-88a0d052.png)](https://pghero.dokkuapp.com/)
8
8
 
9
9
  :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
10
10
 
11
- [![Build Status](https://github.com/ankane/pghero/workflows/build/badge.svg?branch=master)](https://github.com/ankane/pghero/actions) [![Docker Pulls](https://img.shields.io/docker/pulls/ankane/pghero)](https://hub.docker.com/r/ankane/pghero)
11
+ [![Build Status](https://github.com/ankane/pghero/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/pghero/actions)
12
12
 
13
13
  ## Documentation
14
14