PgHero (pghero v0.1.0)

Copy Markdown View Source

A performance dashboard for Postgres, mountable in Phoenix.

Add it to your router:

import PgHeroWeb.Router

scope "/" do
  pipe_through [:browser, :require_admin]
  pghero "/pghero"
end

And configure a database:

config :pghero, repo: MyApp.Repo

Summary

Functions

analyze_all(opts \\ [])

capture_query_stats(opts \\ [])

capture_space_stats(opts \\ [])

clean_query_stats(opts \\ [])

clean_space_stats(opts \\ [])

config()

database(id)

databases()

explain_analyze_enabled?()

explain_enabled?()

kill_enabled?()

pretty_size(value)