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

Commit 5f8a8ea

Browse files
committed
F001 tempalted fixed, typo fixed
1 parent cf7be4a commit 5f8a8ea

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pghrep/templates/F001.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Namespace | Relation | Options
2424
{{- else -}}
2525
No data
2626
{{- end -}}{{/* master */}}
27-
{{- if gt (len .hosts.replicas) 0 -}}
2827

28+
{{ if gt (len .hosts.replicas) 0 }}
2929
### Replicas settings ###
3030
Setting {{ range $skey, $host := .hosts.replicas }}| {{ $host }} {{ end }}
3131
--------{{ range $skey, $host := .hosts.replicas }}|-------- {{ end }}
3232
[hot_standby_feedback](https://postgresqlco.nf/en/doc/param/hot_standby_feedback)
33-
{{- range $skey, $host := .hosts.replicas -}}| {{- $value := (index (index (index (index (index $.results $host) "data") "settings") "global_settings") "hot_standby_feedback") -}}{{- $value.setting -}}
33+
{{- range $skey, $host := .hosts.replicas -}}| {{if (index $.results $host) }}{{- $value := (index (index (index (index (index $.results $host) "data") "settings") "global_settings") "hot_standby_feedback") -}}{{- $value.setting -}}{{ else }}No data{{ end }}
3434
{{- end -}}{{/* range replicas */}}
3535
{{ end }}{{/* if replicas */}}
3636

resources/checks/A007_altersettings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Collect settings whish is altered
1+
# Collect settings which is altered
22
${CHECK_HOST_CMD} "${_PSQL} -f - " <<SQL
33
with settings_count as (
44
select json_object_agg(coalesce(s.sourcefile, 'default'), s.count)

resources/checks/F008_autovacuum_resource_usage.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Autovacuum: resource usage
22

3-
#psql -U postila_ru -t -0 -f - <<SQL
43
${CHECK_HOST_CMD} "${_PSQL} -f - " <<SQL
54
select
65
json_object_agg(s.name, s)

0 commit comments

Comments
 (0)