Connection lost
Trying to reconnect…
Server didn't respond
Recovering…
Postgres operations
v0.2.5Deep Postgres operations — activity introspection, session/lock diagnostics, table + index analytics (bloat, dead tuples, unused indexes), WAL + replication state, progress views, EXPLAIN, and a curated set of operator-tier mutators (cancel/terminate backend, ANALYZE, VACUUM, REINDEX CONCURRENTLY). Authenticates via PG* env vars on the runner host.
Install
emisar pack install
validates the pack and verifies its content hash before copying it into /etc/emisar/packs.
The --hash
below pins the
install to the exact bytes on this page — a tampered copy is rejected. After
install, reload the runner; it re-reads the catalog and advertises every action.
content hash: sha256:7075feb9e2841efd79f3a3a2d84aa030420fa8c69f5ba410517ccc35a9c81c85
sudo emisar pack install postgres \ --hash sha256:7075feb9e2841efd79f3a3a2d84aa030420fa8c69f5ba410517ccc35a9c81c85 \ --dest /etc/emisar/packs # Reload so the runner re-reads the catalog: sudo systemctl reload emisar
Actions 48 total
View on GitHub-
pg_stat_activity (per-backend)
-
Backend counts by state
-
ANALYZE <schema>.<table>
-
Backend holding the oldest xmin
-
pg_stat_bgwriter
-
Cancel a running query
-
Postgres connection summary
-
pg_stat_database
-
All databases by size
-
Top tables by dead-tuple ratio
-
Duplicate indexes (same column set)
-
EXPLAIN ANALYZE (FORMAT JSON) <query>
-
EXPLAIN (FORMAT JSON) <query>
-
Installed extensions
-
HOT update ratio per table
-
Idle-in-transaction backends
-
Top 50 indexes by size
-
Invalid indexes (indisvalid = false)
-
pg_is_in_recovery()
-
Terminate idle-in-transaction backends
-
Largest tables with vacuum/dead-tuple info
-
Last vacuum/analyze per table
-
Blocker → blocked chains
-
Blocking lock graph
-
Top 20 by query age
-
pg_hba_file_rules
-
pg_stat_statements_reset()
-
Top statements by total time
-
pg_stat_progress_create_index
-
pg_stat_progress_vacuum
-
REINDEX INDEX CONCURRENTLY <schema>.<index>
-
Reload postgresql.conf
-
Replication lag (primary view)
-
pg_replication_slots
-
Tables with high seq-scan ratio
-
pg_settings (non-default)
-
Top slow queries from pg_stat_statements
-
pg_stat_ssl
-
pg_statio_user_tables
-
Top tables by total size
-
pg_terminate_backend(pid)
-
Unused indexes (idx_scan = 0)
-
Postgres uptime and version
-
Autovacuum + bloat snapshot
-
VACUUM <schema>.<table>
-
pg_stat_archiver
-
Current WAL LSN + recovery state
-
How close are we to XID wraparound?