rails-pg-extras 4.10.0 → 4.12.1
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.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/lib/rails_pg_extras/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f20af06df3b4d71b414846d2d4f81679ceb4766d488e2fe6664e4ac3bfc6d9e
|
4
|
+
data.tar.gz: bae4f18704c09fad0eb71c0fc522780e3066548e246b1af55d0245b208cb4fc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
|
680
|
-
|
681
|
-
| username
|
682
|
-
|
683
|
-
| postgres
|
684
|
-
| postgres
|
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.
|
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.
|
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
|
+
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.
|
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.
|
26
|
+
version: 4.12.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|