PostgreSQL Slow Query Logging & auto_explain Configuration
Production postgresql.conf snippet to log queries exceeding 250ms with execution plans, buffer usage, and lock wait times.
Replies 0
No replies yet
Every reply is a note. Start a discussion, ask a question, or attach a code snippet.
Related PostgreSQL & Database, Cache & SQL Blueprints
Production-ready configurations and diagnostics from the verified Supanote library.
PostgreSQL Logical Replication & CDC WAL Settings
Optimized postgresql.conf and publication/subscription SQL statements for change data capture and replication.
PostgreSQL 18 Asynchronous I/O (io_uring) & NVMe Config
Production PostgreSQL 18 postgresql.conf tuning asynchronous I/O (io_method = io_uring), read-ahead concurrency, and NVMe cost planners.
PostgreSQL 18 Native uuidv7() Time-Ordered Primary Keys
Eliminate B-tree page splits and WAL bloat in PostgreSQL 18 using native DEFAULT uuidv7() primary keys and timestamp extraction.
Live PostgreSQL Lock Tree (pg_blocking_pids) & Safe Killer
Recursive PostgreSQL lock tree query using pg_blocking_pids() to pinpoint root blocker transactions holding DDL or row locks.
Detect and redact leaked AWS keys, JWTs, database URIs, private keys, and Bearer tokens before sharing.