The terminal waits, blinking. You type pgcli and the database opens like a vault. With Microsoft Presidio in place, the data inside is safer, sharper, and ready for inspection. Together, Presidio and Pgcli form a direct, efficient way to scan, detect, and protect sensitive information inside PostgreSQL without slowing down your workflow.
Microsoft Presidio is an open-source framework for identifying and anonymizing personally identifiable information (PII). It uses built-in recognizers, customizable rules, and natural language processing to find entities like names, emails, credit card numbers, and more. When wired to a PostgreSQL instance, it can operate seamlessly from the command line.
Pgcli is a fast, interactive PostgreSQL client with auto-completion, syntax highlighting, and rich output formatting. For engineers working in live databases, it is faster than default psql and more pleasant to use. Combining Pgcli with Presidio transforms this experience: you do not just query data—you scan it in real time for sensitive fields.
A typical setup starts with installing Pgcli via pip install pgcli. Then, run Microsoft Presidio's CLI or API in parallel. You can pipe query outputs from Pgcli into Presidio’s analyzer, or integrate Presidio as part of your database query automation. This approach delivers instant detection of PII before data leaves your controlled environment.