ruby-pg-extras 5.2.1 → 5.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20d04a4adbd7ca17e382e967960df93f1be7f6aba25d2ec6e72ac68a7dfdf190
4
- data.tar.gz: b2053fb9ae80ea5726c866eb61c1aaa8755ec45fb259e2763387496ba0d99cb0
3
+ metadata.gz: 510de95003611c1630c1adde0f946f1d1326ab90777241818bf400e29a827d29
4
+ data.tar.gz: 8fc3a1d1e778a476d29abad38e9036d817f641c5bb2ab5f5126499e913f001b0
5
5
  SHA512:
6
- metadata.gz: 03164aac5bb96d95a84bfd49cd1bd722f5e21fe00456bd3e27f835261e204c4217f88960834be870cd8380060a25b9c3cc5070ac3270662a06cc2bdd1f69ad57
7
- data.tar.gz: '0382f05ac851f45db8c11272334e49326448b1bd30ef2b68009965d88bf222a497c91c4c8c34d4891c9010a238ade3da9d071e9e8151e9241f21b37b46c385b6'
6
+ metadata.gz: 9604edbba3546115e83cd610228652a2361ce2502792bae433e63b71f1f12f825d66fd337acd51c649ca4e7e996a68ed7fbe3c557e63c96afb48ef5600f7e4d9
7
+ data.tar.gz: ada43c82c079fe85379929e67435ea1e692204c307582ed87bc6459ae3f01e80136c8bb08070a5d7235a163e55aa288caa88674017ef8806902e5b04ac390bb2
@@ -32,6 +32,7 @@ module RubyPgExtras
32
32
  calls_legacy: { limit: 10 },
33
33
  long_running_queries: { threshold: "500 milliseconds" },
34
34
  locks: { limit: 20 },
35
+ blocking: { limit: 20 },
35
36
  outliers: { limit: 10 },
36
37
  outliers_legacy: { limit: 10 },
37
38
  buffercache_stats: { limit: 10 },
@@ -13,4 +13,6 @@ JOIN pg_catalog.pg_locks kl
13
13
  JOIN pg_catalog.pg_stat_activity ka
14
14
  ON kl.pid = ka.pid
15
15
  ON bl.transactionid = kl.transactionid AND bl.pid != kl.pid
16
- WHERE NOT bl.granted;
16
+ WHERE NOT bl.granted
17
+ ORDER BY blocked_duration
18
+ LIMIT %{limit};
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyPgExtras
4
- VERSION = "5.2.1"
4
+ VERSION = "5.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.1
4
+ version: 5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2023-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg