public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: [email protected] <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: The CREATE TABLE documentation groups NOT NULL under table_constraint.
Date: Sat, 4 Apr 2026 09:04:23 -0700
Message-ID: <CAKFQuwbiSN8brEGpMaKWVcfyMBz5ikZwu8AprCZQCS1wd9dNVQ@mail.gmail.com> (raw)
In-Reply-To: <177521204282.3221089.12751196147738658456@wrigleys.postgresql.org>
References: <177521204282.3221089.12751196147738658456@wrigleys.postgresql.org>
On Friday, April 3, 2026, PG Doc comments form <[email protected]>
wrote:
> 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.
>
As of v18 it works. v17 and earlier do not document it.
David J.
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: The CREATE TABLE documentation groups NOT NULL under table_constraint.
In-Reply-To: <CAKFQuwbiSN8brEGpMaKWVcfyMBz5ikZwu8AprCZQCS1wd9dNVQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox