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 1wEr61-004U8u-33 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 16:03:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEr61-003o77-0A for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 16:03:37 +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 1wEr60-003o6z-2U for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 16:03:36 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wEr5y-000000029kC-1KCm for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 16:03:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 63KG3UgO270217; Mon, 20 Apr 2026 12:03:30 -0400 From: Tom Lane To: Paul A Jungwirth cc: Peter Eisentraut , Chao Li , PostgreSQL Hackers Subject: Re: SQL:2011 Application Time Update & Delete In-reply-to: References: <85ac7f0e-d95f-4377-ade0-8941fd328012@eisentraut.org> <7d63ddfa-c735-4dfe-8c7a-4f1e2a621058@eisentraut.org> <4606deaa-7d65-4f22-8a78-356c3180be9d@eisentraut.org> <53f1c094-3c29-4ef6-a9bd-dc2e7894ceb0@eisentraut.org> <4126231.1776622202@sss.pgh.pa.us> <260137.1776695634@sss.pgh.pa.us> Comments: In-reply-to Paul A Jungwirth message dated "Mon, 20 Apr 2026 08:48:31 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <270215.1776701010.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 20 Apr 2026 12:03:30 -0400 Message-ID: <270216.1776701010@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Paul A Jungwirth writes: > On Mon, Apr 20, 2026 at 7:33 AM Tom Lane wrote: >> But speaking of infinite loops, should this one contain a >> CHECK_FOR_INTERRUPTS call? It's hard to conceive of a case where >> the value would be broken down finely enough for that to be a >> problem, but ... > A rangetype could only loop 0-2 times; a multirange 0-1. So I don't > think we need it. Eventually user-defined types could loop more, but a > design that inserts many records every time you change something seems > like a bad idea. Maybe I would add it anyway just out of caution, but > I suspect it's excessive. Fair enough. It's quite likely that we'd hit at least one CFI down inside the insertion anyway. regards, tom lane