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 1x4r4m-007SM1-2D for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 02:33:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4r4l-00B4Ei-1b for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 02:33:15 +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 1x4r4l-00B4ET-0f for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 02:33:15 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x4r4i-000000044BT-2FoQ for pgsql-hackers@postgresql.org; Fri, 11 Sep 2026 02:33:14 +0000 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-38ec1402b05so377045a91.2 for ; Thu, 10 Sep 2026 19:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789093990; x=1789698790; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=SXdBuSia6lgU+DaA3UNH3qXCOIN5+0+L4Nxj+eDYin4=; b=sjc1ZEK5RXVDFCsmM8yh23SUDEY8oQAZHkAC7vVB6Nw8ErRM8a3W+uwkMN+TECcrdR lObAi+Ww4kwBc+mvtEWrfFvc3+n6PWt2JYE1PRmLMaPpbOfek9sTZme1APtru3MKB03y 6jwFWNWVbEBQwNl3Mo3NtkIYkY0HIEj5lhXvHnzuM0AmHSdy/5nWBSzU5NNyKEh15RaW 2pNIm9K9T9EeTZLa370JOTEBrOe/6ZSsdjOXic69UdTpaV02AMZADfkR1iwh94jaY80V ubZ+3bbLXztJhAE1wqy6sBA9pGcqAz61awIPLPkz3xESyp60IBvbcJoKQjWhbkhwhStz 0nyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789093990; x=1789698790; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SXdBuSia6lgU+DaA3UNH3qXCOIN5+0+L4Nxj+eDYin4=; b=WCAYCJTaus9mQQm6BPF7P+4PbXySHLaEHLFp8ax2lm96L1GMSWFn/s8N7y/YNhyrvq nXUn5JfBEGTxcuPMB697T+rZ6vx+lyGZzlzASiK9LrNpPCUTL1eEnA3qgriSMxD7FrXn TerVpCdY/HDUkyUYUM4S+JX8b3Z+KvNHzJnC/3FzYqER5LbbAgovsCAHpLrc+HoUUD54 jOLELWwTf4KM4vtnZhekPeHaue4/qYEc9EpQaIYwuqNao31NLwOVb/Bxx/ANC6K3BObG rw9kg6FmKuE6C4EqmH5oNS1Wb5UfyzYIgpvGo21vdJ+0s+8KXkUjfRBkUx6pWtsWqzuY Bcyw== X-Forwarded-Encrypted: i=1; AKwUvBztaUxvapMRxwXv8wg7+M3hL/LGzCXalyhKjIYReWTARqf1q7D/yCP7/ipOtPMjk1bMXuhSy/uIj+Z1Sut9@postgresql.org X-Gm-Message-State: AFuF++mLlK3bXIYlcAVtdieXm3XmpRINoHmo0MoUVJxjkjCkeYOiZPUj AedVuNQkT0bhAtz2xZiuGu+McFUoHSNrnSktpLxg1OSQE71A7juNCRF1 X-Gm-Gg: AYBFou3PP/EluYZER1qyk4N9uqxwFSXkRf2oYaRDn49W5PJ9nCbi1vE3tNeGuOI2mgk WVEdDq/cj9pvIwawRBLQIDax8xbaUxtOcYPITTcsH6OA70LeFa8YbU7Sm5IpKc+YfM1ErlOZw7t RcIppK4Ne7X2Qi0m0I8Jq/3bBO1BGlN+WmBuaMOl9OxnjNYW/UcItO/rBBcdoE86EwkpneZk9+j xBnb5qiLwP6PIZv+o+5oRpqWjG63VAuW47rgOovLPxQSU5Hr/EO/i4fvCTs10anhLpJX/fBZkyV tTLO599C5SobQoE+ul6SDEf2P8EuDwqa73rFKYXjH9HJ5rmZ2fj9fdpDOeRpGZx/iGpqzn1thR+ 8lsCcrdhD9KE2XiejZh2hBr6dUrkUmD+WZeShXiGwGmi4J0DE3fuOgTspD+VZTVWovp8rGLTaxD +UBJRoghUwSud25cTjxSbER+VclPvnuOTl438pCxRDoHuRYAkF8EmLU0ZYlvYkdvqzR7HhCoTyf 7VRV94Y X-Received: by 2002:a17:90b:2689:b0:398:9be9:ab8c with SMTP id 98e67ed59e1d1-39d9c21a63bmr2923787a91.17.1789093990073; Thu, 10 Sep 2026 19:33:10 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.125]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39d994d8af1sm1923983a91.11.2026.09.10.19.33.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2026 19:33:09 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\)) Subject: Re: Fix failing assert in deferred constraint trigger From: Chao Li In-Reply-To: Date: Fri, 11 Sep 2026 10:32:34 +0800 Cc: Fabrizio Mello , pgsql-hackers@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <8080BBBA-302F-4454-9A20-9535A6F45C7D@gmail.com> References: To: Fujii Masao X-Mailer: Apple Mail (2.3864.700.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 11, 2026, at 09:44, Fujii Masao wrote: >=20 > On Wed, Sep 9, 2026 at 12:51=E2=80=AFPM Fujii Masao = wrote: >> One comment: isn't it be better to add a test for exception handling >> in a deferred constraint trigger at COMMIT? For example, in = triggers.sql: >=20 > I've added this test. Attached is the updated version of the patch. >=20 > BTW, I found that Patrick Reynolds is listed in the > =46rom field of the patch. Does that mean he is the author of the = patch, > rather than you? I'm just asking because I need to know who to list in = the > Author tag of the commit message. >=20 > Regards, >=20 > --=20 > Fujii Masao > V2 LGTM. One nitpick is that, the fix covers both COMMIT and PREPARE TRANSACTION, = but v2 only adds a regression test for the COMMIT case. Should we test = both paths? Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/