~/talk

Deep dive into PostgreSQL internal statistics

Talkat HighLoad++ 2015 · 2015-11-02..11-03· [databases]
links:none on file
slides:none on file

Shows how to read PostgreSQL internal counters to pinpoint real causes not vague symptoms, using concrete SQL against pg_stat_activity and pg_stat_statements and extensions like pg_buffercache pg_fincore and pg_prewarm. Explains meaningful thresholds (cache hit above 90 percent, recovered vs timed checkpoints ratio), how to compute replication lag in bytes and seconds, when autovacuum kicks in from dead tuple counts and fillfactor tuning to increase HOT updates, how to find unused indexes by scan counts and which metrics indicate background writer or disk I O pressure.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28What is PostgreSQL stats
  3. 2:31Goals of the talk
  4. 5:25Stats challenges
  5. 7:33Stats sources in PostgreSQL
  6. 10:45Stats views overview
  7. 11:50Cache hit ratio
  8. 12:52Database anomalies
  9. 14:56Checkpoint behavior
  10. 17:50Background writers
  11. 19:13Replication stats
  12. 21:00Table statistics
  13. 22:47Write activity
  14. 25:40Autovacuum queue
  15. 28:37Index statistics
  16. 29:42Database activity
  17. 31:26Bad transactions
  18. 33:57Locks and deadlocks
  19. 34:42pg_stat_statements
  20. 36:26Extra tools
  21. 37:56Summary
~/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.