Method: PgHero::Methods::QueryStats#query_stats_readable?
- Defined in:
- lib/pghero/methods/query_stats.rb
#query_stats_readable? ⇒ Boolean
42 43 44 45 46 47 |
# File 'lib/pghero/methods/query_stats.rb', line 42 def query_stats_readable? select_all("SELECT * FROM pg_stat_statements LIMIT 1") true rescue ActiveRecord::StatementInvalid false end |