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.94.2) (envelope-from ) id 1tazJv-006yg3-QL for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 15:40:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tazJu-00HW1S-HA for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 15:40:38 +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.94.2) (envelope-from ) id 1tazJu-00HW1K-7o for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 15:40:38 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tazJr-0016q2-1F for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 15:40:37 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id EB0291140118; Thu, 23 Jan 2025 10:40:33 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Thu, 23 Jan 2025 10:40:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1737646833; x=1737733233; bh=jdd6L6QUg1JcL1wivAZmb7p6gYgTukO3 nejv9jwKMnE=; b=DNfelEjL44OhAEwIiM3R392twtQtEMdfqAqPCA+3YOKugziJ +0mkCPSpFdmAnHEIzQKuzt6jnmJWT+cP8smU4JF+VdEHj7WkoWk+c9LWPUspoJHm 5unUuZ/JbTJpVt3+YtqzjyTkPG/hyAjCC5fXep3V5bNgQfexLc8ZvQdK4G2inj76 QKohMr34DMSzykObpkQaDlOL6HbTNJO117gdjQVMpEKIPuOfDh7FEEpEzEPu2vNz mzjmpMrSbSWc+BniPFDJ6pK4zcjCnOs522wc+EgoTiwfmK+t5cK1aw1WOPijlnhF W4WdNDYwL8YRv8E45TNm+TpexWEUhurVzhqmlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1737646833; x= 1737733233; bh=jdd6L6QUg1JcL1wivAZmb7p6gYgTukO3nejv9jwKMnE=; b=E J74HA92HlFiO3HT+Hb+DYv26FTTBbweWm6KJIJ4GuUEmdCCwUackfD1gq4qEZmXi Td6nOMxRSsI0XYcqeLatt3OO7dTzhB7vInvEM5uDjbH9AMWJNt57DfdjdBJ8ok5q 794hk8a102HgEk6EkEEeLjNI+57SrP7beA5QfL+dA//CugC0Fkq+0eMX+gWCDbHp 3zqA3Nl2umwAJDUw+/+RWf0KGKjqSyukED6fe1wDyxJCQIQsW/oC3GHE/+N30NSR hNyxlVXjJaN3VHn+ltbaxLuVbNL4K389atjA8vSQsaoKZE6geaQVNbI7Gygbc4bZ bSg6gkgV2QTYLMuqgTkVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgvddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuhffvvehfjggtgfesthekredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpedvjeeihffhvdefheevleek veeujefhieduueeljeekieejieegfefhtdfhleejgeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdr ohhrghdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epphhjsehilhhluhhmihhnrghtvggutghomhhpuhhtihhnghdrtghomhdprhgtphhtthho pehjihgrnhdruhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtoh epphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg pdhrtghpthhtohepvhhighhnvghshhdvudesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jan 2025 10:40:32 -0500 (EST) Message-ID: Date: Thu, 23 Jan 2025 16:40:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: SQL:2011 application time From: Peter Eisentraut To: Paul Jungwirth Cc: jian he , PostgreSQL Hackers , vignesh C References: <9b7cb814-c78c-489f-85b2-32be4398647f@illuminatedcomputing.com> <95c6d49b-7d60-4ad0-820c-e00ae1b2a3d4@illuminatedcomputing.com> <57ea0668-5205-426e-b934-efc89f2186c2@illuminatedcomputing.com> <6dc196d4-8853-49d7-8dd3-e391058451c1@eisentraut.org> <66e47fc0-77b7-4763-9b70-5c0b7ff15f21@eisentraut.org> <333d3886-b737-45c3-93f4-594c96bb405d@eisentraut.org> <6a2247d9-461d-4b0a-b692-f0f3c0fab27f@eisentraut.org> <8f995a4c-64e3-40cd-bfed-06b54a280d36@illuminatedcomputing.com> <0832f18d-523f-4c15-acb0-338a785150c5@illuminatedcomputing.com> <5f0c25de-2c13-4fb5-a4df-a1e03c43cd14@illuminatedcomputing.com> <1b45f81d-4e99-4813-a2c6-72bf5fd80980@eisentraut.org> Content-Language: en-US In-Reply-To: <1b45f81d-4e99-4813-a2c6-72bf5fd80980@eisentraut.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 21.01.25 19:52, Peter Eisentraut wrote: > On 12.01.25 00:19, Paul Jungwirth wrote: >> On 1/4/25 13:39, Paul Jungwirth wrote: >>> These updates fix a problem in the unaccent contrib module. When I >>> added a new parameter to get_func_namespace, I changed a call there. >>> Then I when took out that parameter, I didn't update the extension >>> again. Otherwise these are the same as the v46 patches. >> >> Hi Hackers, >> >> Here is another set of commits. Based on discussion on the thread >> about Index AM API Cleanup [1], I decided that I should just always >> make FOR PORTION OF infer its intersect proc from whatever intersect >> op is used by temporal foreign keys (even though we don't have a way >> to get an intersect op for non-range/multirange types yet). This means >> we need one less GiST support proc, which seems like a nice improvement. >> >> I also fixed the RESTRICT commit where a change previously was >> included in a later commit that should have been included there. >> >> Rebased to 29dfffae0a, fixing a merge conflict + crash with the NOT >> ENFORCED commit. > > I have committed the fix for foreign key NO ACTION (patch 0002, this did > not require patch 0001).  I will study the proposed fix for RESTRICT > (patches 0001 and 0003) next. I think my interpretation of what RESTRICT should do is different. The clause "Execution of referential actions" in the SQL standard only talks about referenced and referencing columns, not periods. So this would mean you can change the period columns all you want (as long as they maintain referential integrity). So it would be like the NO ACTION case. But you can't change any of the non-period columns on the primary key if they are referenced by any referencing columns, even if the respective periods are disjoint. Maybe this makes sense, or maybe this is a mistake (neglected to update this part when periods were introduced?). But in any case, I can't get from this to what the patch does. When I apply the tests in the patch without the code changes, what I would intuitively like are more errors than the starting state, but your patch results in fewer errors. If we're not sure, we can also disable RESTRICT for now. We have to get NO ACTION right first anyway, given the other messages in this thread.