The CREATE TABLE documentation groups NOT NULL under table_constraint.

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: jnishtha305(at)gmail(dot)com
Subject: The CREATE TABLE documentation groups NOT NULL under table_constraint.
Date: 2026-04-03 10:27:22
Message-ID: 177521204282.3221089.12751196147738658456@wrigleys.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/18/ddl.html
Description:

Unlike UNIQUE or CHECK, NOT NULL cannot be used standalone at the table
level in a standard way
Example: CREATE TABLE t (a int, NOT NULL a); fails.
It only works as an "out-of-line" constraint in very specific inheritance
scenarios.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2026-04-04 16:04:23 Re: The CREATE TABLE documentation groups NOT NULL under table_constraint.
Previous Message Tom Lane 2026-03-31 15:25:04 Re: Correct docs about GiST leaf page structure