Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Replication Remove topic Replication Clear all 32 posts RSS

November 2026

ClickHouse

Fencing a Postgres primary that might still be alive

Case study 10 min +100 XP

Before promoting a standby, a managed Postgres control plane must fence the old primary, because promotion and DNS changes alone don't stop writes: async standbys, per-session synchronous_commit overrides, quorum commit with a remaining standby, and canceled commits already in WAL can all let a still-alive primary accept writes.

October 2026

September 2026

August 2026

ClickHouse

New system views in PostgreSQL 19

Deep dive 12 min +120 XP

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.

The quest for software engineering knowledge.

Look:
Layout: