PostgreSQL
5 posts on PostgreSQL.

sqlx Offline Mode: Building in Docker and CI With No Database in Sight
sqlx's query! macros check every query against a live Postgres at compile time, so a plain docker build fails. How I build with SQLX_OFFLINE and a committed .sqlx folder, the .env that quietly turned it off, and the schema change that compiled fine and panicked at runtime.
12 min read

Every Security Layer I Add Assumes the One Before It Already Failed
Why I stack security layers in a backend only I use: what each one assumes, which mistake it survives, why explaining how it works shouldn't weaken it, and what layering still cannot fix.
5 min read

Liveness vs Readiness in Axum, and the Health Check That Always Said OK
My readiness endpoint answered 200 with the database gone, because a handler with no return type answers 200. Two health checks in axum that mean different things, an empty 503, and tests that call the router without opening a port.
5 min read

Why My Rust Backend Is Not Allowed to Log In as postgres
A superuser skips row-level security, so a backend that logs in as postgres turns every RLS policy into decoration. How I split the database into three roles, why the password is a file and not an env var, and what the sqlx pool does with it.
6 min read

I Ran My GDPR Logging Schema and It Found Three Bugs in a Day
Designing a healthcare logging schema on paper is easy. Booting it exposed a hashed-user count that was quietly wrong, a device fingerprint that walked straight past redaction, and a TTL test that proved a caveat I had only written down.
8 min read