~/talk

Scaling the Wall of Text: Logging Best Practices in PostgreSQL

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
github:richyen
slides:none on file

PostgreSQL logging must be configured: set log_line_prefix to include timestamp, PID, session/tx id, user, DB and client so you can trace who did what; use log_destination/logging_collector and a separate log partition to avoid IO interference; use log_min_duration_statement, sampling (v12–13) and log_statement selectively to catch slow or fatal queries; grep/sed/awk, Splunk, pgbadger and auto_explain speed analysis. Proper logs cut incident investigation from days to hours; only ~40% keep defaults.

AI-written summary · about

  1. 0:00Intro
  2. 1:15Why logging is important
  3. 2:57Scenarios
  4. 3:24What logging can tell you
  5. 4:25PostgreSQL logging parameters
  6. 4:48Where to log
  7. 7:59What to log
  8. 10:13When to log
  9. 15:51What to log again?
  10. 18:55The importance of log_line_prefix
  11. 23:23What to look for
  12. 26:19Summary
~/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.