Skip to content

Commit

Permalink
Avoid parsing error from bogus Azure Flexible Server custom GUC
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanck-ntap committed Nov 10, 2021
1 parent 0977e96 commit 00f4f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/postgres_exporter/pg_setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func querySettings(ch chan<- prometheus.Metric, server *Server) error {
//
// NOTE: If you add more vartypes here, you must update the supported
// types in normaliseUnit() below
query := "SELECT name, setting, COALESCE(unit, ''), short_desc, vartype FROM pg_settings WHERE vartype IN ('bool', 'integer', 'real');"
query := "SELECT name, setting, COALESCE(unit, ''), short_desc, vartype FROM pg_settings WHERE vartype IN ('bool', 'integer', 'real') AND name != 'sync_commit_cancel_wait';"

rows, err := server.db.Query(query)
if err != nil {
Expand Down

0 comments on commit 00f4f08

Please sign in to comment.