You are commenting on version 9.1 documentation but testing version 18. The 18 docs mention not-null constraints.
On Wednesday, June 17, 2026, Pete O'Such <posuch@gmail.com> wrote:https://www.postgresql.org/docs/9.1/sql-altertable.htmlThe text for "ADD table_constraint" says that NOT VALID "is currently only allowed for foreign key constraints."You are commenting on version 9.1 documentation but testing version 18. The 18 docs mention not-null constraints. David J.
https://www.postgresql.org/docs/9.1/sql-altertable.htmlThe text for "ADD table_constraint" says that NOT VALID "is currently only allowed for foreign key constraints."
pgsql-docs by date:
Соглашаюсь с условиями обработки персональных данных