ruby-pg-extras 1.2.0 → 1.2.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: 2a09437b758895b5a7dcb519cd1659c5afb0ae11d9fa3e79b73ddac88cd689c8
4
- data.tar.gz: addcfb85c1f3a73731cbd34670ed984d8677954563980cf4e9b3317fcc329ce8
3
+ metadata.gz: b1967b4e46414629bd3af498287abfbfc99dea8ac1cf6d70a929dcf2a9889b53
4
+ data.tar.gz: 0b045ccc5a99f2a354b96cd521643ece47729080149b433f261491d4e2146741
5
5
  SHA512:
6
- metadata.gz: 62cdf41039cd544cc02467606282bca0ecf990b0d65eeaf51803e356b702eba719ee4f861318fef7a225834c0afa85b0ed4f5cd652e604b9c9c6f5f0057e5f7f
7
- data.tar.gz: '081df083c1f33c94883eb0fff10ad32b6ca28629f39b07ca704879a45c7945b7c67706bd27107fcfff8001ba4d78924ff1f4810ff7fdab312748ef9bedbbbce1'
6
+ metadata.gz: 0561d594ad8fb4e1750b291e6339ee29d2b96f7c11b76b9fe444ac52708d07ce2119caa78f8b675e6633535566dc9b100a284451f387c77ec14e0f1e1d8f778b
7
+ data.tar.gz: 6224cecfe5ee92421de2c0052d0dd6c763e56a969aad3af7bf0962ce4beacc3754e499b9c7a93942b3e033c5fe5d31f3a852716cf255c94c69f94a6848b3c046
data/README.md CHANGED
@@ -283,7 +283,7 @@ RubyPGExtras.table_indexes_size
283
283
  (truncated results for brevity)
284
284
  ```
285
285
 
286
- This command displays the total size of indexes for each table, in MB. It is calcualtes by using the system administration function `pg_indexes_size()`.
286
+ This command displays the total size of indexes for each table and materialized view, in MB. It is calcualtes by using the system administration function `pg_indexes_size()`.
287
287
 
288
288
  ### `total_table_size`
289
289
 
@@ -301,7 +301,7 @@ RubyPGExtras.total_table_size
301
301
  (truncated results for brevity)
302
302
  ```
303
303
 
304
- This command displays the total size of each table in the database, in MB. It is calculated by using the system administration function `pg_total_relation_size()`, which includes table size, total index size and TOAST data.
304
+ This command displays the total size of each table and materialized view in the database, in MB. It is calculated by using the system administration function `pg_total_relation_size()`, which includes table size, total index size and TOAST data.
305
305
 
306
306
  ### `unused_indexes`
307
307
 
@@ -6,5 +6,5 @@ FROM pg_class c
6
6
  LEFT JOIN pg_namespace n ON (n.oid = c.relnamespace)
7
7
  WHERE n.nspname NOT IN ('pg_catalog', 'information_schema')
8
8
  AND n.nspname !~ '^pg_toast'
9
- AND c.relkind='r'
9
+ AND c.relkind IN ('r', 'm')
10
10
  ORDER BY pg_indexes_size(c.oid) DESC;
@@ -6,5 +6,5 @@ FROM pg_class c
6
6
  LEFT JOIN pg_namespace n ON (n.oid = c.relnamespace)
7
7
  WHERE n.nspname NOT IN ('pg_catalog', 'information_schema')
8
8
  AND n.nspname !~ '^pg_toast'
9
- AND c.relkind='r'
9
+ AND c.relkind IN ('r', 'm')
10
10
  ORDER BY pg_table_size(c.oid) DESC;
@@ -1,3 +1,3 @@
1
1
  module RubyPGExtras
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb