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 1wa4A4-001VVm-2n for pgsql-docs@arkaria.postgresql.org; Thu, 18 Jun 2026 04:15:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wa4A3-009HCG-2P for pgsql-docs@arkaria.postgresql.org; Thu, 18 Jun 2026 04:15:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wa4A3-009HC7-1c for pgsql-docs@lists.postgresql.org; Thu, 18 Jun 2026 04:15:27 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wa4A1-00000000ubk-3VSJ for pgsql-docs@lists.postgresql.org; Thu, 18 Jun 2026 04:15:26 +0000 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-36d5b11201aso292207a91.2 for ; Wed, 17 Jun 2026 21:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781756124; cv=none; d=google.com; s=arc-20240605; b=Dy0vgEIsjDuvZppOk8gSwv15oZrkrcpiH80GoklnkJKvSWVy7qc/5bVt511h5uiYxK hkMDn2DLvLp91VC+0M5IZWMj+zKAKpHxBIc5VFyoMQlpHnz/pnWtfubV94+B6zvDLizF TqWwWiPSzrxzPJntUZZJ/Xo/lwbzmlYLM72VncEZ9jvH/oA1IzO6zsJ7HYnuTFriXXiW xYz/YG9lqb1BqdLepcncHNx/Gf/u+r18LGltEmB0K3jzRR7+ySWdb682rrIFvL441NpR VmwTtJWfv7gEWELMN7K5KaEovAdgS8BE/pde5pHyq3F7Zrr4z4SQxIek5Gnu8NMMKzOg Krow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=wrJxeQa/cQjWkjbNzAAMGiBFeaXLgfem8pez4OVP4io=; fh=eitnFYqiGz5Qd9tP4ETN4LQj8BMqIm+FgmdzoPwQKYs=; b=fNrjAIqr8hS1NOMC/Fsfz9QgQbo59sCB2BJH8UQB4a8SBMfqr0MKvHbSh7owD9VTuJ zbLWYfgN5M6ItjufwUTi6XPKI8HALXfByL3N58Lpuv3MCO9P4kjRVx7kG8aRPbFWcA22 fATRs1tBPRqMMzE0d0iAIR/yK8Lv5BtBEuUbzqM4fdnol5nURakAlUYce6StO0Z16uRD 93nvnd3HX6cbXIrB5N4Cw0n6kY/ziT6tAPwohaJAiYR5DZsva4TJxZhevTAXNU0XDNBs ViaPqSkEFTZhh6ZKEfDUyY98z9n04qbWifd+Zzzlb7pphsImF0Vz0OjLhptmFxTasjCA Rx5A==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781756124; x=1782360924; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wrJxeQa/cQjWkjbNzAAMGiBFeaXLgfem8pez4OVP4io=; b=VrGUa47pprZS9FitRVF+eXDXhRBnyq929lcPn+yy2VwQdb9kxU3jqb1Z4BzD8uVD+k cEbA8WrVng6FA8BzUW2VZ6nMsq2hiMIRm39nNk4riU+HyAjCPd7EcU65IcGGaITQ56W1 +ceS3iul1oYdjL7x2gvgOvWwFXwy6vhK9VZhDP+Zgypj6a9xkn8FHorAn6TkBmYnv8bT UWeqMXntuy6hgwOUp3JzfTnEX3BPnt1lczmR09OmmBW9jIzAxQTcXz8VgJAdB3LQ7V4j VrALaSc0SPibOBeS7vrk6OWZofOyZ5DMxBguSjM+PRDDzZ1fZz1L2FrZqsZbtVEsl7De j+tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781756124; x=1782360924; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wrJxeQa/cQjWkjbNzAAMGiBFeaXLgfem8pez4OVP4io=; b=pH6v0fhoz9tr2jeb3kZDMPyXbyBd97tRsEQWjy+hv6+oPWBDUu4HrUK2Ni43Th4E0d lT+rm0WCe9XMwNHKlIGXFM9iitkloIC/Lq7nm8Vror9w/wyKVNDJTRijbDtlBJqculFi psxqybNxGEBWIP4P4ysA0FtsUM0ttXLOQ9AnZZfr30VVx19Kq5ctot5mmmfaULt8aqvW f7HejOFo8uSDOqWgiBDIEJal5AQrih8rf24TCDKnoisaZ+wBjCAzuL9IxkB0cM+aO+kP juZW/0ZkHLUmz2X22aeR/737s5NreJ7nJbyu2iJUZZpbjkSXm13lcjlW5B4A/sAJlNKw Aszg== X-Gm-Message-State: AOJu0YzPSPRceKLy0PVT6kP+jCv2rG7rvUlicPLBuWRaWxk5irgp8zbA pApIiefD4C9MASqGLrFAq/2D1IKTpsr8VUyNw6iMnaGU6osFkLUBxS9lunCXX+DryBTh5ZC2QWN 5BzS3R3nWJXiCokrLch+lnwmhLyB8rPM7v4+S X-Gm-Gg: AfdE7ckfEsrc9LomJMmMHU8UmqlO7A9nIA+2lUYb2A8P+1DwZOWWOuie8fF+u31ebPa LFjqGFrIVOt8em4GYouoZxF92JbDDQOaFX9Xdq+oZUtfXyug0CW2Jr57nfLCLhsL9zcS18MrEFx nfGYV7WKXxbOJ0BSM0npU+HFBJIwnU1ETO3dGqqob+6x0b2W75GRTTJhMZzxziYJBntFTaQzVht uSjTeV/7VMZQQpNjwaWNjQIcZlPHRMbwQuD4sfWyelMOcg7nvpy+2+tyayLbUUdbD2xRZJdx2hC N4suvGY8y23X39Setv6pBJJ5Yb3mEdqt+QhIJVFWnORfuDAY2NA= X-Received: by 2002:a17:90b:2588:b0:37c:70a6:12ae with SMTP id 98e67ed59e1d1-37ce46dabe3mr1858050a91.24.1781756124462; Wed, 17 Jun 2026 21:15:24 -0700 (PDT) MIME-Version: 1.0 From: "Pete O'Such" Date: Thu, 18 Jun 2026 00:15:13 -0400 X-Gm-Features: AVVi8CexweoojlC05kjrrAf_iFXyLnW0ZZwx1N7VPECaqy-o_lAzlq5RBO0rbfQ Message-ID: Subject: Doc error re: "not null" "not valid" To: pgsql-docs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000e0038906547f6c20" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e0038906547f6c20 Content-Type: text/plain; charset="UTF-8" https://www.postgresql.org/docs/9.1/sql-altertable.html The text for "ADD table_constraint" says that NOT VALID "is currently only allowed for foreign key constraints." Testing with 18.4 shows that this is incorrect. A brief example of it working for a NOT NULL constraint is available here: https://neon.com/postgresql/18/not-null-as-not-valid It looks like this is correctly noted as working in the 18.0 release notes ( https://www.postgresql.org/docs/release/18.0/ ), but not in the main docs. Thank you! -Pete O'Such --000000000000e0038906547f6c20 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
https://www.postgresql.org/docs/9.1/sql-altertable.html<= /div>

The text for "ADD table_constraint" says= that NOT VALID "is currently only allowed for foreign key constraints." Testing with 18.4 shows that this is incorrect. = A brief example of it working for a NOT NULL constraint is available here:<= br>https:/= /neon.com/postgresql/18/not-null-as-not-valid

= It looks like this is correctly noted as working in the 18.0 release notes = (=C2=A0https://ww= w.postgresql.org/docs/release/18.0/=C2=A0), but not in the main docs.

Thank you!

-Pete O'Suc= h
--000000000000e0038906547f6c20--