Skip to content

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

Privacy Remove topic Privacy Clear all 8 posts RSS

2026

Neon

pg_redact: Content-aware PII redaction with Jev, enforced in Postgres

How-to 9 min +90 XP

Column-level masking in Postgres can't redact PII buried in free text, and regex alone can't tell an SSN from an invoice number. pg_redact generates candidate spans with regex and capitalization rules, asks TypeSafe's Jev model to label each one (name, email, phone, address, id_number, none) with calibrated probabilities, and stores spans above 0.5 confidence as JSONB next to the message.

2025

Neon

Why Your Staging Database Never Matches Production

Opinion 8 min +80 XP

Staging databases drift from production continuously in three ways: data drift (stale dumps, sequence values that diverge so the same ID points to different records), schema drift (hotfixes, skipped migrations, mismatched indexes and extensions causing query plan divergence), and transformation drift (anonymization that breaks uniqueness, referential integrity and determinism).

Neon

How to Handle PII in Staging Databases Without Losing Realistic Data

How-to 11 min +110 XP

Four common ways to get realistic but PII-safe staging data are compared, with code for each: manual CSV export plus Python anonymization scripts, Faker-based masking libraries with deterministic seeding to preserve referential integrity, fully synthetic data generators, and replication into staging with SQL masking views or the PostgreSQL Anonymizer extension (declarative security labels, dynamic masking, anonymized dumps, k-anonymity checks).

The quest for software engineering knowledge.

Look:
Layout: