pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: eugene.losowskigallagher@googlemail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Constraint check is missing value check ARRAY
Date: Sun, 13 Sep 2026 23:41:40 +0200
Message-ID: <fe59aa65d62c6088ad494b278be8348302ccb4b4.camel@cybertec.at> (raw)
In-Reply-To: <178915377800.2258529.262291845008098767@wrigleys.postgresql.org>
References: <178915377800.2258529.262291845008098767@wrigleys.postgresql.org>

On Fri, 2026-09-11 at 19:09 +0000, PG Doc comments form wrote:
> This page is missing the value check array.
> https://www.postgresql.org/docs/current/ddl-constraints.html
> 
> 
> Example:
> CREATE TABLE demo
> (
>  id bigint NOT NULL DEFAULT nextval('seq_ttelephone_id'::regclass),
>  usage character(1) NOT NULL  DEFAULT 'M',
>  CONSTRAINT ck_ttelephone_usage_1 CHECK (usage = ANY
> (ARRAY['M'::character(1),'H'::character(1),'W'::character(1),'F'::character(1)]))
> NOT VALID
> )
> );
> 
> This is entirely missing from the documentation.
> 
> Key thing to point out is the type cast must match:
> e.g. character(1) for type of character(1) etc

Which aspect of this requires more detailed documentation than already exists?
Can you be more descriptive?

Yours,
Laurenz Albe






view thread (5+ messages)  latest in thread

Message-ID: <fe59aa65d62c6088ad494b278be8348302ccb4b4.camel@cybertec.at>
Permalink:  ../fe59aa65d62c6088ad494b278be8348302ccb4b4.camel@cybertec.at/
Also on:    postgresql.org/message-id/fe59aa65d62c6088ad494b278be8348302ccb4b4.camel@cybertec.at

 · 

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: pgsql-docs@postgresql.org
  Cc: laurenz.albe@cybertec.at, eugene.losowskigallagher@googlemail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Constraint check is missing value check ARRAY
  In-Reply-To: <fe59aa65d62c6088ad494b278be8348302ccb4b4.camel@cybertec.at>

* 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