duration log_duration = on # Logging Query Identifier (%Q) log_line_prefix = 'pid=%p query_id=%Q: ' # slow query logging, all queries for demo (don't do this in prod) log_min_duration_statement = 0 # auto_explain (ms), > 10ms for demo auto_explain.log_min_duration = 10 # Equivalent to VERBOSE when using EXPLAIN # https://www.postgresql.org/docs/current/auto-explain.html auto_explain.log_verbose = on pgrailsbook.com Slide 4 of 7
/ postgres.fm Query activity in postgresql.log , pg_stat_statements , and manual and automatic query plans Generate some interesting queries in Rideshare Show queryid in exec plans w/ auto_explain in PG 16 pgrailsbook.com Slide 5 of 7