PostgreSQL NOT NULL Check: Count Existing NULLs Before a Schema Change
A practical PostgreSQL NOT NULL preflight: count full-table NULLs with SQL, then use SqlOtter Column Statistics to inspect the current table view without confusing loaded rows for the whole table.