ENGINEERING NOTES
Production incidents, architecture decisions, and things worth documenting.
Long-form investigations from database reliability, platform engineering and production operations. Written when there is something worth documenting — not on a schedule.
FEATURED
ARCHITECTURE · SQL SERVER · POSTGRESQL · MARIADB · SCYLLADB · WSFC
From Daily Checks to a Database Engineering Command Center
How daily DBA checks became a distributed multi-engine operations platform — and then an audited control plane for the estate.
READ NOTE →AUTOMATION · SQL SERVER
The Plan Got Worse. Query Store Had the Previous One.
Using Query Store and FORCE_LAST_GOOD_PLAN to turn SQL Server plan regressions into a bounded self-healing loop.
READ NOTE →PRODUCTION FORENSICS · MYSQL
The 20 GB MySQL Had Already Freed
Tracing unexplained MySQL RSS through Performance Schema, Linux process memory and the allocator.
READ NOTE →ALL NOTES
19 PUBLISHEDAUTOMATION · SQL SERVER · MARIADB · POSTGRESQL · SCYLLADB
The Model Proposes, the Human Disposes, the Platform Verifies
An LLM suggests fixes from a database capture; the portal checks, a human runs and a fresh capture verifies each one.
READ NOTE →OBSERVABILITY · SQL SERVER · POSTGRESQL
A Finding Needs an Identity Before It Can Have a History
How a findings tracker stopped rediscovering the same breaches: a key per finding, and resolution only on evidence.
READ NOTE →ARCHITECTURE · POSTGRESQL
Inspect and Change Are Different Verbs
How a database operations portal changes production: one executor, lock keys, heartbeats, stops and no retries.
READ NOTE →PRODUCTION FORENSICS · MARIADB
The Backup's GTID Was Not the Master's Position
A MariaDB DR rebuild that restored cleanly, then failed with error 1236: the GTID a backup records is not where to start.
READ NOTE →ARCHITECTURE · POSTGRESQL
Row-Level Security as the Second Lock, and the Grants I Kept Out of It
PostgreSQL RLS in two multi-tenant apps: forced policies, transaction-local context, and sharing kept out of policies.
READ NOTE →PRODUCTION FORENSICS · SQL SERVER
The Database Moved Hosts. Its Service Master Key Couldn't Follow.
On RDS Custom for SQL Server, a host replacement can leave the Service Master Key undecryptable, and backups fail next.
READ NOTE →PERFORMANCE · SQL SERVER
A CTE Is Not a Temp Table
A SQL Server search procedure ran its full-text search four times per call, because every CTE reference is re-evaluated.
READ NOTE →PERFORMANCE · SQL SERVER
CPU Fell 67%. Reads Went Up 44%. Both Were True.
Replacing per-row scalar UDFs with inline TVFs in SQL Server, and the per-row spools that quietly added the reads back.
READ NOTE →PERFORMANCE · BABELFISH · POSTGRESQL
Tuning Babelfish When the Client Speaks T-SQL but the Planner Is PostgreSQL
A practical workflow for getting execution plans, runtime evidence and session-level tuning data from Babelfish.
READ NOTE →AUTOMATION · SQL SERVER
Archiving a Hot Audit Table Without Making the Archive the Outage
Batched SQL Server archiving with bounded transactions, referential safety, restartability and throttling.
READ NOTE →ARCHITECTURE · SQL SERVER · POSTGRESQL · MARIADB · SCYLLADB · WSFC
From Daily Checks to a Database Engineering Command Center
How daily DBA checks became a distributed multi-engine operations platform — and then an audited control plane for the estate.
READ NOTE →PRODUCTION FORENSICS · POSTGRESQL
A 99.99% Cache Hit Ratio Didn't Answer the PostgreSQL Memory Question
Why a 99.99% PostgreSQL cache hit ratio did not explain connection-driven memory pressure.
READ NOTE →OBSERVABILITY · MARIADB
The Label Changed. The Prometheus Series Didn't Disappear.
A mutable label created a stale in-process metric series that made a database-health aggregate look healthy.
READ NOTE →AUTOMATION · SQL SERVER
The Plan Got Worse. Query Store Had the Previous One.
Using Query Store and FORCE_LAST_GOOD_PLAN to turn SQL Server plan regressions into a bounded self-healing loop.
READ NOTE →AUTOMATION · SQL SERVER
Making SQL Server Memory Follow the Failover
Recalculating SQL Server max memory from the FCI instances actually running on each cluster node.
READ NOTE →PRODUCTION FORENSICS · SQL SERVER
The SQL Server Was Up. Kerberos Was Pointing at the Wrong Account.
Diagnosing Cannot generate SSPI context when SQL Server worked by IP but failed by hostname.
READ NOTE →PRODUCTION FORENSICS · MYSQL
The 20 GB MySQL Had Already Freed
Tracing unexplained MySQL RSS through Performance Schema, Linux process memory and the allocator.
READ NOTE →AUTOMATION · SQL SERVER
The Database Failed Over. Its CDC Jobs Didn't.
Availability Groups move databases, not Agent jobs — so CDC capture stops at every failover. A watchdog that notices.
READ NOTE →AUTOMATION · SQL SERVER
The Lookups I Stopped Skipping
Eight SSMS query shortcuts behind one stored procedure, and the parser constraint that shaped the whole interface.
READ NOTE →No notes match.