rails-pg-extras 4.10.0 → 4.12.1

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: 6f7da20e26931877a4bc3c5447900d9577cc4bcc1d1c33e4d170bfe778f1f9d8
4
- data.tar.gz: 930871acea28fca872d15116a8ef15fb3060c0f061b8f32315d185067c69bca7
3
+ metadata.gz: 6f20af06df3b4d71b414846d2d4f81679ceb4766d488e2fe6664e4ac3bfc6d9e
4
+ data.tar.gz: bae4f18704c09fad0eb71c0fc522780e3066548e246b1af55d0245b208cb4fc6
5
5
  SHA512:
6
- metadata.gz: 101d589935213c12f1ea95b94b18ab8dc808221678172418c885d2b096466446f71a8964b59de0462ae0d8d4633d8fbe0904ce45dc635434fba2fbcee99350cc
7
- data.tar.gz: 6f44f3874687c47d06d560d880174bd8994f8b389cfb5f2d816e8a47b53c1190b3f85fb4359ce4543e9bb36c876b28c241cc039cdd7c54817052496084590532
6
+ metadata.gz: 8d0f95028c558641e68ad41236444917e0d6758b54e2b655d89dd46b7a0eca93f38337f677bafd486e8f9a81f416a609dc1d20ef84f1803883f353ada1b7b9ca
7
+ data.tar.gz: 314bbf8ca0aa006f22a32ae38c53fc1b7adc71d528baee7859abed68624178a147d1a720aa956911e7d7a1c89091cf3323186170a55fec93a2bfa6fd8ddd300c
data/README.md CHANGED
@@ -630,6 +630,16 @@ RailsPgExtras.kill_all
630
630
 
631
631
  This commands kills all the currently active connections to the database. It can be useful as a last resort when your database is stuck in a deadlock.
632
632
 
633
+ ### `kill_pid`
634
+
635
+ ```ruby
636
+
637
+ RailsPgExtras.kill_pid(args: { pid: 4657 })
638
+
639
+ ```
640
+
641
+ This commands kills currently active database connection by its `pid` number. You can use `connections` method to find the correct `pid` values.
642
+
633
643
  ### `pg_stat_statements_reset`
634
644
 
635
645
  ```ruby
@@ -675,14 +685,15 @@ This command lists all the currently installed and available PostgreSQL extensio
675
685
 
676
686
  RailsPgExtras.connections
677
687
 
678
- +-----------------------------------------------------+
679
- | Returns the list of all active database connections |
680
- +-----------------+----------------+------------------+
681
- | username | client_address | application_name |
682
- +-----------------+----------------+------------------+
683
- | postgres | 172.19.0.1/32 | psql |
684
- | postgres | 172.19.0.1/32 | irb |
685
- +-----------------+----------------+------------------+
688
+ +----------------------------------------------------------------+
689
+ | Returns the list of all active database connections |
690
+ +------------------+--------------------------+------------------+
691
+ | username | pid | client_address | application_name |
692
+ +------------------+--------------------------+------------------+
693
+ | postgres | 15962 | 172.31.69.166/32 | sidekiq |
694
+ | postgres | 16810 | 172.31.69.166/32 | bin/rails |
695
+ +------------------+--------------------------+------------------+
696
+
686
697
  ```
687
698
 
688
699
  This command returns the list of all active database connections.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsPgExtras
4
- VERSION = "4.10.0"
4
+ VERSION = "4.12.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.0
4
+ version: 4.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-23 00:00:00.000000000 Z
11
+ date: 2022-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-pg-extras
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.10.0
19
+ version: 4.12.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.10.0
26
+ version: 4.12.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement