pg_redact is a Postgres extension that uses content-aware PII detection to redact personal information in free-text fields. It combines regex pattern matching to identify candidate snippets with Jev, TypeSafe's classification model, to determine what constitutes PII in context, then applies role-based masking rules via SQL functions.