Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x5rxK-000KC2-2j for pgsql-docs@arkaria.postgresql.org; Sun, 13 Sep 2026 21:41:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x5rxK-00AX8P-0S for pgsql-docs@arkaria.postgresql.org; Sun, 13 Sep 2026 21:41:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x5rxJ-00AX8H-2t for pgsql-docs@lists.postgresql.org; Sun, 13 Sep 2026 21:41:45 +0000 Received: from mail-wm2-x09.google.com ([2a00:1450:4864:31::9]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x5rxF-00000000G8d-3gC2 for pgsql-docs@lists.postgresql.org; Sun, 13 Sep 2026 21:41:45 +0000 Received: by mail-wm2-x09.google.com with SMTP id 5b1f17b1804b1-49e6eb11e9cso5149185e9.1 for ; Sun, 13 Sep 2026 14:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1789335701; x=1789940501; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:to:from:subject:message-id:from:to:cc :subject:date:message-id:reply-to:content-type; bh=NUhdRFr1zOp8Ecm9FCJ0N/0U7TKcLVa864wWHa46yv8=; b=P9/GFP4CXLwUH6O6HcxDw3C0XlZVR1WV/MtXsOObN0rDmn6D3v4BdYJvklFX0VgY81 l3YCCVydbk+1LU8T/+xiWHKox7p6MsGWFrBDGrCWMHXyXQjUmRhSHnJYYzo6cd1XMxbI wc78eiTvyxI5eQi+TxqNTLI4DDUvHzr3HQXS2VA21GQBqqKZTVagSwMSJJ4eVI3WIJsk c1WmSC9USRiO2elkg3xRh6NIV97Le0yK5NBIVWYqtYDTCP86YtmHA5mIkWNR7jAFIqg4 L8JzDRKLnJ80f0ReSQynMiBGpIrgvxo3PLZnyQ9P5zlg6AsU2/KA7JyInbB0KuSXc9Vn Vr4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789335701; x=1789940501; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=NUhdRFr1zOp8Ecm9FCJ0N/0U7TKcLVa864wWHa46yv8=; b=VGMjvqOQjS7iabORmqEDtBzn8xskvJqctKLeyE/ZyLxHEb4CSVSzjLs8wUEIwbTwfe T6fF6hFT3K5IGhj9IM2lpCSy7qijdRU8jpxa2eV1sZm7v+objUIhq//VWSOQ94da7xDk /LaIvIZYsB4ozEq5S2q8tzZUlX+iVzW8QNGb2jEIHBvE9F0fZHu/UcwTPL36Ak/15jab kbf93gWQtpx5aijJvbnHTSjOMmhse41cuJdQaOLiM2+bg6cL/DhEGSBeuFpVE6vkfRUP GuQP+2vqD5d+2cyNbwYc74ph37kn/dx6Nst5hv595BPNSZoXNvSHcduECK25PqXiaDBw 1S9w== X-Forwarded-Encrypted: i=1; AKwUvBwTYdyVE54BNzQYgUbHq9prg5ACzjfchD3BERlqE4lqoL/YHSZtTBw+vGeQaNn4kqqnep8mp4t1DcqV@lists.postgresql.org X-Gm-Message-State: AFuF++lWSSswcrY0twqOKQg/nGjs2X+mRm26FT4nmz/IuG7ctMya+FiW 8YiHUoMHBSv/DLl7QMBGkXe82UOaxDFDvYaYoPRspi2nk0SES8c4AH/ETjI2j3RY0bM= X-Gm-Gg: AYBFou2FmZwqHMTluK4jco9EUSwQIYlaWpr+8O/xBd8Rkh1XwuiByf8rTkzSdiKxtKt 5k9mxdgbVbCkAFoKMzDrOpqwtpVIXwxoHsejKR0bk0T1hR5ObRDMPgNAV/AoRaPC8FtFjnppb/p XuzqvUzmCoQYmI7M3WnrpDv/zeq3Eqz+vihUZJ8sU3BMQjyunpfST0FJEwFxJWutQ7mAOn/Wh9u 0utw3mg6j3TwwL9wTWeZ3MeIwsqQQHqkKMQQtqcAaOGpcf7nJqV/czOryzDs9/1a2RVr+xX6GvL WxN2RhDtARHRe1mmybtLfclB05XbxGWoUOjnsSBnZabhwB0Xt7soTn/H8nVl/iaycFY+95Ug76H +CAejSH3girgfVxhjtft3PxFxmy/9YdT7HkuKlMKPFL91BPropb/AQj9lh++BkSGpgRkEdGtPtt H8JarR6piTNjm68pyqKMkixXVvR++ceLnKgJ7EKp9ilbUSmhTxk4gkQdVbBMyIMoRk+ksy7yPqa MZBQx03q6XUYU/xznNUU25/xwRfJw== X-Received: by 2002:a05:600c:c049:b0:499:60bf:c6f7 with SMTP id 5b1f17b1804b1-49e61992b43mr123740805e9.13.1789335701505; Sun, 13 Sep 2026 14:41:41 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:b677:677f:591c:a18a:2956]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49e6fc9c027sm156228265e9.1.2026.09.13.14.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 14:41:41 -0700 (PDT) Message-ID: Subject: Re: Constraint check is missing value check ARRAY From: Laurenz Albe To: eugene.losowskigallagher@googlemail.com, pgsql-docs@lists.postgresql.org Date: Sun, 13 Sep 2026 23:41:40 +0200 In-Reply-To: <178915377800.2258529.262291845008098767@wrigleys.postgresql.org> References: <178915377800.2258529.262291845008098767@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-1.fc44) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 >=20 >=20 > Example: > CREATE TABLE demo > ( > =C2=A0id bigint NOT NULL DEFAULT nextval('seq_ttelephone_id'::regclass), > =C2=A0usage character(1) NOT NULL=C2=A0 DEFAULT 'M', > =C2=A0CONSTRAINT ck_ttelephone_usage_1 CHECK (usage =3D ANY > (ARRAY['M'::character(1),'H'::character(1),'W'::character(1),'F'::charact= er(1)])) > NOT VALID > ) > ); >=20 > This is entirely missing from the documentation. >=20 > 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 exis= ts? Can you be more descriptive? Yours, Laurenz Albe