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

Commit dc52659

Browse files
committed
F007 replicas output removed
1 parent acee96f commit dc52659

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

pghrep/templates/F007.tpl

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,9 @@ Table | Rows | Total size | Table size | Index(es) Size | TOAST Size
99
{{- $value := (index (index (index $.results $.hosts.master) "data") $key) -}}
1010
{{ index $value "Table"}} | {{ index $value "Rows"}} | {{ index $value "Total Size"}} | {{ index $value "Table Size"}} | {{ index $value "Index(es) Size"}} | {{ index $value "TOAST Size"}}
1111
{{ end }}
12-
{{- end -}}
13-
{{ if gt (len .hosts.replicas) 0 }}
14-
### Replica servers: ###
15-
{{ range $skey, $host := .hosts.replicas }}
16-
#### Replica (`{{ $host }}`) ####
17-
{{ if (index $.results $host) }}
18-
Table | Rows | Total size | Table size | Index(es) Size | TOAST Size
19-
------|------|------------|------------|----------------|------------
20-
{{ range $i, $key := (index (index (index $.results $host) "data") "_keys") }}
21-
{{- $value := (index (index (index $.results $host) "data") $key) -}}
22-
{{ index $value "Table"}} | {{ index $value "Rows"}} | {{ index $value "Total Size"}} | {{ index $value "Table Size"}} | {{ index $value "Index(es) Size"}} | {{ index $value "TOAST Size"}}
23-
{{ end }}
24-
{{- else -}}
12+
{{- else }}
2513
No data
26-
{{- end -}}{{ end }}{{ end }}
14+
{{- end }}
2715

2816
## Conclusions ##
2917

0 commit comments

Comments
 (0)