~/talk

Troubleshooting High CPU Utilization in PostgreSQL Databases

Talkat Citus Con: An Event for Postgres 2023 · 2023-04-18..04-19· [databases]
links:none on file
slides:none on file

Shows concrete SQL checks and fixes: count connections (example 3,457 of 9,057 slots ≈ 38%), list non‑idle sessions and top queries (one query had 40 active connections), find queries >5s and per‑second frequencies, inspect pg_stat_statements costs, rebuild invalid indexes, run VACUUM/autovacuum and ANALYZE, parse Azure logs with AWK, disable JDBC prepared‑statement caching, and tune parameters like statement_timeout >= 30s and random_page_cost = 1 on SSD; includes a proactive scanner with pg_stat_statements probes and example outputs.

AI-written summary · about

  1. 0:00Introduction
  2. 2:36DB connections
  3. 6:42Distribution of non-idle connections per database and per query
  4. 9:21The PostgreSQL parameter statement_timeout
  5. 11:31Running frequent SQL queries
  6. 14:04The PostgreSQL parameter random_page_cost
  7. 18:52PostgreSQL DB bloat
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.