public inbox for [email protected]
help / color / mirror / Atom feedThe CREATE TABLE documentation groups NOT NULL under table_constraint.
2+ messages / 2 participants
[nested] [flat]
* The CREATE TABLE documentation groups NOT NULL under table_constraint.
@ 2026-04-03 10:27 PG Doc comments form <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2026-04-03 10:27 UTC (permalink / raw)
To: [email protected]; +Cc: [email protected]
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: The CREATE TABLE documentation groups NOT NULL under table_constraint.
@ 2026-04-04 16:04 David G. Johnston <[email protected]>
parent: PG Doc comments form <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: David G. Johnston @ 2026-04-04 16:04 UTC (permalink / raw)
To: [email protected] <[email protected]>; [email protected] <[email protected]>
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-04-04 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-04-03 10:27 The CREATE TABLE documentation groups NOT NULL under table_constraint. PG Doc comments form <[email protected]>
2026-04-04 16:04 ` David G. Johnston <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox