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.98.2) (envelope-from ) id 1x8jNo-00000001SB2-2blP for pgsql-docs@arkaria.postgresql.org; Mon, 21 Sep 2026 19:08:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x8jNn-0000000B3ym-1kZk for pgsql-docs@arkaria.postgresql.org; Mon, 21 Sep 2026 19:08:55 +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.98.2) (envelope-from ) id 1x8jNn-0000000B3yd-0VCa for pgsql-docs@lists.postgresql.org; Mon, 21 Sep 2026 19:08:55 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x8jNk-00000000ZVn-2EZy for pgsql-docs@lists.postgresql.org; Mon, 21 Sep 2026 19:08:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2026010100; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=pbGAQrbtddddvalPlcTCL/IS1cUfM9hJmeySHbzkSJk=; b=hcQ/O m3A30X5J8mfjknssz+cAeSlSQs0cyrcnvsP/NMPB0D0Rs3d8VLAhznnU/dEH3nSarw4wFopkg3sFP oAqbe1j3+VJatfhx3yMmdaDBahAwk3iE8o9sWR4nk98Bjs8xYYSxrvUaHVImM/qe0xgWh2dCX4iYj 9lgzOt/f8T4C/m2tYGls7vQKSWegXg7BzDxablIUuf3FQxQnWCSxYOSoo5HatTXXITIdWDEVf91u5 PQODp7iyTSBIbdr6qL1e0g4rEn2GN0Y+htByjA7RIeFqJUrYGMPhgV9ZBQeU4gpCMmtPOlfwAcxas 1oQo6/Jm4kAOzY2tD12RtiQq+MmMA==; Received: from bruce by momjian.us with local (Exim 4.98.2) (envelope-from ) id 1x8jNh-000000022fu-2W5P; Mon, 21 Sep 2026 15:08:49 -0400 Date: Mon, 21 Sep 2026 15:08:49 -0400 From: Bruce Momjian To: kacperkuras@hotmail.com, pgsql-docs@lists.postgresql.org Subject: Re: E.6.3.2.1. Constraints Message-ID: References: <178982939588.1243.6087398342138761960@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <178982939588.1243.6087398342138761960@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk tOn Sat, Sep 19, 2026 at 02:49:55PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/18/release-18.html > Description: > > Commit 086c84b23 changed what a foreign key with ON DELETE RESTRICT or ON > UPDATE RESTRICT raises when it refuses a change: SQLSTATE 23001 > (restrict_violation) instead of 23503 (foreign_key_violation), and the > message now says "violates RESTRICT setting of foreign key constraint". The > PostgreSQL 18 release notes do not mention it. > > Code that catches 23503 to report that a row is still referenced stops > matching RESTRICT keys after upgrading, while NO ACTION keys still raise > 23503. The same notes list the change to the XML error codes (cd838e200), so > this one seems to belong there as well. How do we want to handle such cases in the release notes? The new codes are not mentioned in the commit message, and there are no doc changes in the patch. We have a similar commit from August, which was later reverted: commit c16a1b4f2ce Author: Peter Eisentraut Date: Fri Aug 21 13:55:58 2026 +0200 Fix error code for null FOR PORTION OF target When the target expression of FOR PORTION OF (...) evaluated to NULL, ExecInitModifyTable raised an error without an errcode, so clients got the internal error code XX000 for a user-reachable condition. Oversight in commit 8e72d914c52. To fix, report ERRCODE_NULL_VALUE_NOT_ALLOWED, and reword the message to "FOR PORTION OF target must not be null", matching similar executor messages such as "frame starting offset must not be null". Bug: #19630 Reported-by: Zheng Wang Reported-by: Yanjie Zhao Reported-by: Yiyang Liu Author: Zsolt Parragi Discussion: https://www.postgresql.org/message-id/flat/19630-9f10ca28426295fa%40postgresql.org -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.