Pglog: a flexible log analyser
summary
Shows how to import CSV-format PostgreSQL logs into a local Postgres instance, using Postgres on laptop and a file_fdw/materialized views option; ships ready SQL reports for autovacuum, slow queries, checkpoints, temp files and errors; creates a partitioned PG log table plus views that let SQL pinpoint surprising hotspots (top-5 bloated tables, 80th-percentile temp-file sizes) and exclude outliers; runs in Docker for offline analysis and explicitly warns against use in production.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 2:37Why create PGLog
- 5:51PGLog and PostgreSQL
- 9:05Installation
- 12:39Configuring PostgreSQL log settings
- 16:37PGLog table setup
- 19:51Standard reports
- 24:53Checkpoint stats
- 26:20Temp file report
- 29:12Slow queries insights
- 31:22Custom SQL analysis
- 33:31Getting started
related talks
57mQuery Logging and Workload Analysis
43mLogging Not Just for Lumberjacks
49mLeveraging pgBadger for Effective PostgreSQL Troubleshooting
49mProfessional PostgreSQL monitoring made easy
30mPostgreSQL Observability: The Log Configuration That Changes Everything
51mWhen Postgres Can't, You Can!
42mProfessional PostgreSQL monitoring made easy
25mPetabyte-scale Log management in Postgres using Bagger
