Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit c22b562

Browse files
committed
DBA links changed to tag 5.0
1 parent 41169c8 commit c22b562

10 files changed

+12
-12
lines changed

pghrep/templates/H003.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Num | Schema name | Table name | FK name | Issue | Table mb | writes | Table sca
1414
{{- $value.fk_name }} |
1515
{{- $value.issue }} |
1616
{{- $value.table_mb }} |
17-
{{- $value.writes }} |
17+
{{- NumFormat $value.writes -1 }} |
1818
{{- $value.table_scans }} |
1919
{{- $value.parent_name }} |
2020
{{- $value.parent_mb}} |

resources/checks/A004_cluster_info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Collect pg cluster info
2-
main_sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/4.0/sql/0_node.sql | awk '{gsub("; *$", "", $0); print $0}')
2+
main_sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/0_node.sql | awk '{gsub("; *$", "", $0); print $0}')
33

44
pgver=$(${CHECK_HOST_CMD} "${_PSQL} -c \"SHOW server_version\"")
55

resources/checks/A005_extensions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Collect extensions and their settings
22

3-
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/4.0/sql/e1_extensions.sql | awk '{gsub("; *$", "", $0); print $0}')
3+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/e1_extensions.sql | awk '{gsub("; *$", "", $0); print $0}')
44

55
dbs=$(${CHECK_HOST_CMD} "${_PSQL} -f - " <<SQL
66
select datname from pg_database where datname not in ('template0', 'template1', 'postgres')

resources/checks/F004_heap_bloat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/f1effb54dcfcc7075960a3a51a412d4d2796064a/sql/b1_table_estimation.sql | awk '{gsub("; *$", "", $0); print $0}')
1+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/b1_table_estimation.sql | awk '{gsub("; *$", "", $0); print $0}')
22

33
${CHECK_HOST_CMD} "${_PSQL} -f -" <<SQL
44
with data as (

resources/checks/F005_index_bloat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/f1effb54dcfcc7075960a3a51a412d4d2796064a/sql/b2_btree_estimation.sql | awk '{gsub("; *$", "", $0); print $0}')
1+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/b2_btree_estimation.sql | awk '{gsub("; *$", "", $0); print $0}')
22

33
${CHECK_HOST_CMD} "${_PSQL} -f -" <<SQL
44
with data as (

resources/checks/G002_current_connections.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Current Activity: count of current connections grouped by database, user name, state
22

3-
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/4.0/sql/a1_activity.sql | awk '{gsub("; *$", "", $0); print $0}')
3+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/a1_activity.sql | awk '{gsub("; *$", "", $0); print $0}')
44

55
${CHECK_HOST_CMD} "${_PSQL} -f -" <<SQL
66
with data as (

resources/checks/H001_invalid_indexes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Invalid keys
22

3-
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/8e40d2345a54e2e6ed6605c0061e3bfd76fa032f/sql/i4_invalid_indexes.sql | awk '{gsub("; *$", "", $0); print $0}')
3+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/i4_invalid_indexes.sql | awk '{gsub("; *$", "", $0); print $0}')
44

55
${CHECK_HOST_CMD} "${_PSQL} -f -" <<SQL
66
with data as (

resources/checks/H002_unused_indexes.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
unusedSql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/bbfd94d82ebba379bb7bc7fb9108b62e9ae5951c/sql/i1_rare_indexes.sql | awk '{gsub("; *$", "", $0); print $0}')
2-
redundantSql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/bbfd94d82ebba379bb7bc7fb9108b62e9ae5951c/sql/i2_redundant_indexes.sql | awk '{gsub("; *$", "", $0); print $0}')
3-
migrationSql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/bbfd94d82ebba379bb7bc7fb9108b62e9ae5951c/sql/i5_indexes_migration.sql | awk '{gsub("; *$", "", $0); print $0}')
1+
unusedSql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/i1_rare_indexes.sql | awk '{gsub("; *$", "", $0); print $0}')
2+
redundantSql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/i2_redundant_indexes.sql | awk '{gsub("; *$", "", $0); print $0}')
3+
migrationSql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/i5_indexes_migration.sql | awk '{gsub("; *$", "", $0); print $0}')
44

55
${CHECK_HOST_CMD} "${_PSQL} -f -" <<SQL
66
with indexes as (

resources/checks/H003_non_indexed_fks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Foreign keys with Missing/Bad Indexes
22

3-
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/master/sql/i3_non_indexed_fks.sql | awk '{gsub("; *$", "", $0); print $0}')
3+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/i3_non_indexed_fks.sql | awk '{gsub("; *$", "", $0); print $0}')
44

55
${CHECK_HOST_CMD} "${_PSQL} -f -" <<SQL
66
with data as (

resources/checks/L001_table_sizes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Collect pg cluster info
2-
main_sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/4.0/sql/2_table_sizes.sql | awk '{gsub("; *$", "", $0); print $0}')
2+
main_sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/5.0/sql/2_table_sizes.sql | awk '{gsub("; *$", "", $0); print $0}')
33

44
${CHECK_HOST_CMD} "${_PSQL} -f - " <<SQL
55
with data as (

0 commit comments

Comments
 (0)