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

Commit 4b46d6c

Browse files
committed
F004: Bloat estimate instead Bloat + sort sign moved
1 parent b3428c4 commit 4b46d6c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pghrep/templates/F004.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
{{ if .hosts.master }}
66
### Master (`{{.hosts.master}}`) ###
77
{{ if (index (index .results .hosts.master) "data") }}
8-
Table | ▼ Size | Extra | Bloat | Live | Last vacuum | Fillfactor
8+
Table | Size | Extra | ▼ Bloat estimate| Live | Last vacuum | Fillfactor
99
-------|------|-------|-------|------|-------------|-------------
1010
{{ range $i, $key := (index (index (index .results .hosts.master) "data") "_keys") }}
1111
{{- $value := (index (index (index $.results $.hosts.master) "data") $key) -}}
12-
{{ $key }} | {{ ( index $value "Size") }} | {{ ( index $value "Extra") }} | {{ ( index $value "Bloat") }} | {{ ( index $value "Live") }} | {{ if (index $value "Last Vaccuum") }} {{ ( index $value "Last Vaccuum") }} {{ end }} | {{ ( index $value "Fillfactor") }}
12+
{{ $key }} | {{ ( index $value "Size") }} | {{ ( index $value "Extra") }} | {{ ( index $value "Bloat estimate") }} | {{ ( index $value "Live") }} | {{ if (index $value "Last Vaccuum") }} {{ ( index $value "Last Vaccuum") }} {{ end }} | {{ ( index $value "Fillfactor") }}
1313
{{ end }}
1414
{{- else -}}
1515
No data

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/5ba8c4754b8b67400434bc371197aba2137a4f6d/sql/b1_table_estimation.sql | awk '{gsub("; *$", "", $0); print $0}')
1+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/f1effb54dcfcc7075960a3a51a412d4d2796064a/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/4.0/sql/b2_btree_estimation.sql | awk '{gsub("; *$", "", $0); print $0}')
1+
sql=$(curl -s -L https://raw.githubusercontent.com/NikolayS/postgres_dba/f1effb54dcfcc7075960a3a51a412d4d2796064a/sql/b2_btree_estimation.sql | awk '{gsub("; *$", "", $0); print $0}')
22

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

0 commit comments

Comments
 (0)