---
title: "Discussion on \"PostgreSQL NOT NULL Check: Count Existing NULLs Before a Schema Change\" | Hashnode"
description: "Discussion on \"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."
url: "https://hashnode.com/posts/postgresql-not-null-check-count-existing-nulls-before-a-schema-change/6b121cfeccd31f1b657b90ef"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PostgreSQL NOT NULL Check: Count Existing NULLs Before a Schema Change](https://sqlotter.hashnode.dev/postgresql-not-null-check-count-existing-nulls-before-a-schema-change?utm_source=hashnode&utm_medium=feed)

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.

20h ago · 2 min read · sqlotter.hashnode.dev  
Read the article

-   [#sqlotter](https://hashnode.com/tag/sqlotter)
-   [#postgresql](https://hashnode.com/tag/postgresql)

## Written by

[SqlOtter](https://hashnode.com/@sqlotter)

@sqlotter · Fuzhou,China

  
[View profile](https://hashnode.com/@sqlotter)

SqlOtter : the world's most powerful database management tool

SqlOtter , The world's most powerful database management tool

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
