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 1tazBq-006xfZ-Mu for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 15:32:19 +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 1tazAq-00HP6l-7n for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 15:31:16 +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.94.2) (envelope-from ) id 1tazAp-00HP6d-Ax for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 15:31:15 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tazAm-00175z-29 for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 15:31:14 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id D8B471140211; Thu, 23 Jan 2025 10:31:11 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Thu, 23 Jan 2025 10:31:11 -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=1737646271; x=1737732671; bh=rF+pAl7jN4PnjNhQ6nVt7grq8uZBVVwc kBVoKzqCxm0=; b=ae8lDVF7gDKSbgqOOkfwtqRW73dT1ukqDeBMYQEdP2IasZAf dxc7G9avU3L7iCwNYZ5xk5LwXHccTkgkQvz6kC4ZmdJC7Lj0mUUTj8LNWX+ahdvR IGO9/N/O/0SuLXj9+kYie/G3JfVUZy0IlbXPHXGBRYvAeA3lAHe2fugA+/kcCIRZ 3J7O/IUjgkVurh/vsEbBQsBy1gmE27mMovOYA2QfZBRXYzEt/COQmKaMl5vsyhXE S7bX9cRH8+wi4BxH1mJ0+bIumTGdN18A2lsY7k0VPkNsFonsUn2/LSvN2RzMZoaE AT43O8JXzFvmBPeumROoserQ5XXfsC2noJ1KVg== 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=1737646271; x= 1737732671; bh=rF+pAl7jN4PnjNhQ6nVt7grq8uZBVVwckBVoKzqCxm0=; b=s TZQRfUiNAREIa6qCxfKt9I1CoKuItix+I/+L02s7sQwwa1GEVmfKCW/yC9w4I6iK Gua9ORUUy+s6h2ocBu2wDjaT82NuwXP0sgOCSZ9WWBREp5PmeHNj6UNfsQRKNSL4 CHrGothzESTPB3A5amn3DvO6b1nBvsNmK7faZ1JLh/xlpgSqYy5JhE/+BK+YYMM4 q0oRO18VUDxvWobpRGsHEPUCe8fNNBWy35SPyU1b9+W5tRQVtqa/Ap3xfaGj7zLc fay4BQteYmEFen2Ijc2ehcT3kcePau9QMdq8hIFCg1+MqJiJMZm0CUgn+tGO9H6K nfGR54y/Tp9mUFBTO1xZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgvddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpeefgeetfedvvefgvdfhjefg leetffehjeekudekteffkeekfefgudefteektdeugfenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgpdhpghhsqhhlrdgsuhhilhgunecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrd horhhgpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehpjhesihhllhhumhhinhgrthgvuggtohhmphhuthhinhhgrdgtohhmpdhrtghpthhtoh epthhglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtthhopehjihgrnhdruhhnihhv vghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtg hkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepvhhi ghhnvghshhdvudesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jan 2025 10:31:10 -0500 (EST) Message-ID: <9bb3eea7-820f-4932-92cb-cb564fc44caf@eisentraut.org> Date: Thu, 23 Jan 2025 16:31:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: SQL:2011 application time To: Paul Jungwirth Cc: Tom Lane , jian he , PostgreSQL Hackers , vignesh C References: <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@illuminatedcomputin! g.com> <1b45f81d-4e99-4813-a2c6-72bf5fd80980@eisentraut.org> <3611540.1737518430@sss.pgh.pa.us> Content-Language: en-US From: Peter Eisentraut In-Reply-To: <3611540.1737518430@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22.01.25 05:00, Tom Lane wrote: > Peter Eisentraut writes: >> I have committed the fix for foreign key NO ACTION (patch 0002, this did >> not require patch 0001). > > That commit seems to be causing occasional buildfarm failures: > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=indri&dt=2025-01-22%2001%3A29%3A35 > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=mylodon&dt=2025-01-22%2001%3A17%3A14 > > Both of these look like > > --- /Users/buildfarm/bf-data/HEAD/pgsql.build/src/test/regress/expected/without_overlaps.out 2025-01-21 20:29:36 > +++ /Users/buildfarm/bf-data/HEAD/pgsql.build/src/test/regress/results/without_overlaps.out 2025-01-21 20:43:08 > @@ -1792,8 +1792,6 @@ > SET valid_at = CASE WHEN lower(valid_at) = '2018-01-01' THEN daterange('2018-01-01', '2018-01-05') > WHEN lower(valid_at) = '2018-02-01' THEN daterange('2018-01-05', '2018-03-01') END > WHERE id = '[6,7)'; > -ERROR: update or delete on table "temporal_rng" violates RESTRICT setting of foreign key constraint "temporal_fk_rng2rng_fk" on table "temporal_fk_rng2rng" > -DETAIL: Key (id, valid_at)=([6,7), [2018-01-01,2018-02-01)) is referenced from table "temporal_fk_rng2rng". > -- a PK update that fails because both are referenced (even before commit): > BEGIN; > ALTER TABLE temporal_fk_rng2rng > > ie, an expected error did not get thrown. I suspect the nested locking clauses in the new SQL query in the patch. I don't see anything else in the patch that would possibly create this kind unstable behavior. Paul, what do you think? I'll revert the patch soon unless we have a quick fix coming.