From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: tim.needham2@gmail.com
Subject: Missing "CONSTRAINT" keyword in ADD CONSTRAINT form?
Date: Mon, 04 Dec 2023 20:28:53 +0000
Message-ID: <170172173304.398200.5115088275142308182@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/16/sql-alterdomain.html
Description:
(apologies, I managed to send this too soon, just now, somehow)
The example for ALTER DOMAIN shows:
ALTER DOMAIN zipcode ADD CONSTRAINT zipchk CHECK (char_length(VALUE) = 5);
...yet the syntax suggests no CONSTRAINT-keyword (I'm guessing?) should be
used:
ALTER DOMAIN name ADD domain_constraint [ NOT VALID ]
When it should, I think?
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: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, tim.needham2@gmail.com
Subject: Re: Missing "CONSTRAINT" keyword in ADD CONSTRAINT form?
In-Reply-To: <170172173304.398200.5115088275142308182@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox