class Gladys::Actions::Benchmark
def fetch_postgres_settings
analyze how certain settings affect benchmark results. This is technically
Fetches metadata from the database so we can include it in the report and
def fetch_postgres_settings @database.select(:name, :setting).from(:pg_settings).all.to_h do |row| [row[:name], row[:setting]] end rescue Sequel::DatabaseError => e Gladys.log_debug "Failed to fetch metadata, skipping... (Error: #{e.message})" {} end