I ran the query. The table was huge. Names, emails, phone numbers, addresses. All there. All exposed.
This is what happens when sensitive data hides in plain sight. PII—personally identifiable information—lives in many databases, spread out across schemas and tables you don’t check often. A simple slip, a missed column, can be the start of a breach. The faster you can find and catalog that PII, the better you can lock it down. This is where a PII catalog built with pgcli changes the game.
pgcli is a fast, smart PostgreSQL command-line client. It adds auto-completion, syntax highlighting, and quick query execution. On its own, it’s great for productivity. Paired with a process to scan, flag, and list PII, it becomes a power tool. You can connect to any Postgres database, run targeted queries, and dump a clean catalog of PII in minutes.
A PII catalog is more than a compliance checkbox. It’s a map of your most sensitive terrain. Building it with pgcli means you can query system catalogs to find columns likely to store sensitive data. Columns like email, phone_number, address, birth_date, ssn, and credit_card can be revealed fast. You can script pgcli sessions or run interactive searches, store the output, and share the results with your security team.