Doc error re: "not null" "not valid"

From: "Pete O'Such" <posuch(at)gmail(dot)com>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Doc error re: "not null" "not valid"
Date: 2026-06-18 04:15:13
Message-ID: CAEdngj81QMQ=_a0DKhX+iUomLE=iPr3X598Pr1O=JyJs0s00Jw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

https://www.postgresql.org/docs/9.1/sql-altertable.html

The text for "ADD table_constraint" says that NOT VALID "is currently only
allowed for foreign key constraints." Testing with 18.4 shows that this is
incorrect. A brief example of it working for a NOT NULL constraint is
available here:
https://neon.com/postgresql/18/not-null-as-not-valid

It looks like this is correctly noted as working in the 18.0 release notes
( https://www.postgresql.org/docs/release/18.0/ ), but not in the main docs.

Thank you!

-Pete O'Such

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2026-06-18 04:26:31 Re: Doc error re: "not null" "not valid"
Previous Message Christoph Berg 2026-06-15 20:35:37 Re: 7.2.1. The FROM Clause