What's New with Monitoring in PostgreSQL 19
PostgreSQL 19 (in beta) brings a batch of monitoring improvements. log_lock_waits is now on by default, log_min_messages accepts per-process-type levels, and autoanalyze gets its own log_autoanalyze_min_duration threshold. A new wal_fpi_bytes counter is exposed in pg_stat_wal, per backend, in EXPLAIN and in VACUUM/ANALYZE logs. Other additions are new wait events for WAL LSN waits and file/pipe COPY I/O, remote-server messages routed through normal log formatting, a pg_get_multixact_stats() function, and an earlier 100M-transaction wraparound warning. The post closes with an upgrade checklist for log parsers, metric collectors, wait-event dictionaries, config UIs and age(datfrozenxid) alert thresholds.
Related posts
- New system views in PostgreSQL 19
ClickHouse mediumAdept
PostgreSQL 19 (in beta) adds four system views, and three of them get hands-on demos. pg_stat_lock gives cumulative per-locktype wait counts, wait time and fastpath_exceeded counters, though waits only count once they pass deadlock_timeout. pg_stat_recovery returns standby replay state as one atomic, consistent snapshot. pg_stat_autovacuum_scores shows the new score-based autovacuum prioritization, tunable through five weight parameters. Worked SQL examples cover lock contention, fast-path spill on a 140-partition table (alongside the new max_locks_per_transaction default of 128) and how autovacuum scores are computed from thresholds.
- PostgreSQL 19 on ClickHouse Managed Postgres, from day one
ClickHouse mediumAdept
PostgreSQL 19 has been generally available on ClickHouse Managed Postgres since its November 2026 release day. That was possible because the service runs unforked community Postgres from the PGDG repository, builds VM images from release candidates with Ubicloud, gates the version behind a feature flag, and stress-tests HA failovers in staging. The post then covers the PostgreSQL 19 features that matter most for operators: REPACK CONCURRENTLY and its caveats (not MVCC-safe, a final ACCESS EXCLUSIVE lock, disk space needs), WAIT FOR LSN for read-your-writes on replicas, sequence replication and publication EXCEPT, parallel autovacuum index workers with scoring, and pg_plan_advice. A pgbench run with one synchronous standby showed about 2% higher TPS than PostgreSQL 18, and several defaults changed, including jit off, lz4 TOAST compression and max_locks_per_transaction at 128.
- Monitor These Key Neon Metrics Via Datadog
Neon mediumAdept
Neon now exports database metrics to Datadog via an API-key integration covering all computes in a project. The metrics include connection counts, replication lag, CPU and memory, Local File Cache hits and misses, an estimated working set size, and pg_stat_database aggregates. A low LFC hit ratio or high miss count usually means the working set exceeds cache memory and reads are falling through to pageserver getpage requests, so the fix is a larger compute or better queries and indexes. Watching working set size trends, deadlocks and row operations helps with autoscaling limits and spotting inefficient queries, and an importable JSON dashboard is provided.
- Postgres week in the Netherlands: PGDay Lowlands & Percona Live 2026
ClickHouse easyNovice
Notes from PGDay Lowlands in Utrecht and Percona Live in Amsterdam, covering two ClickHouse-maintained Postgres extensions and several PostgreSQL 19 features. pg_clickhouse is a foreign data wrapper that lets unmodified Postgres queries and ORMs run against ClickHouse via pushdown, with 15 of 22 TPC-H queries fully pushed down. pg_stat_ch streams per-query execution events through a shared-memory ring buffer to ClickHouse without back-pressure. Also covered: the new PostgreSQL 19 plan-stabilization modules pg_plan_advice and pg_stash_advice, and PostgreSQL 19 monitoring changes including WAIT FOR, pg_stat_lock, wal_fpi_bytes, and log_lock_waits on by default.
- Debug your Postgres from the terminal: a tour of `neon inspect db`
Neon mediumAdept
`neon inspect db` adds fourteen read-only Postgres diagnostic subcommands to the Neon CLI, each running one curated query against Postgres statistics and catalog views (table/index sizes, bloat, unused indexes, seq scans, long-running queries, locks, pg_stat_statements outliers and calls, vacuum stats, replication slots, subscriptions). Connections resolve automatically for linked Neon projects, and most commands also work on any Postgres via `--db-url`. Output is bounded and available as JSON or YAML, which makes it safer for agents than raw SQL access. Neon-specific commands report Local File Cache hit rate (aim for 0.99+) and working set versus LFC size to signal when to scale compute, since Neon pins shared_buffers at 128 MB.