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 1tb71j-0087I8-22 for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 23:54:23 +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 1tb71i-006eqE-1l for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 23:54:22 +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 1tb71h-006eq5-OZ for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 23:54:21 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tb71e-001AaT-2D for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 23:54:21 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-21644aca3a0so33398195ad.3 for ; Thu, 23 Jan 2025 15:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20230601.gappssmtp.com; s=20230601; t=1737676457; x=1738281257; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Zwu7j+WQJs8oFw1xBaO9UXX6T4++VDhUF7o9kmJdw7Q=; b=h0SGkyIJ1nQKunURksKEP/Y1QeZLj7DujqTJubPt+dRxP5H3JSqoBL9HVAsXW8OuKr 6VoLrEVdiQTavqTZ8POAEnIfKytLmyAtei/sJhfAP1sL+KyXBUazEM8GDrsfY8tqPVJ8 4/ST5HX7UntGyBaKNvZI3dWlJvhrOiLyHhFdhsJOYcO5xaOkMZodU3FLwZssPmhc+vju XYYEXDAsU1HSPaptyQODqZUgqrii90GwixjUE/JqauDJa5ytEXJf7cL+w7M8aT3KtJD/ e/WZaW4A+gTs3CW/yLWunRSUEv6e11FEywOEUipUVUTieN6IoklV8eamm5eU80JmY5Wg rc6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737676457; x=1738281257; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Zwu7j+WQJs8oFw1xBaO9UXX6T4++VDhUF7o9kmJdw7Q=; b=u7zGnSO038lhR/llky7mm8IOU5Me6lSrzxWqJBYe6QXVQHCN3At6A6PwCwP++LczrQ bcN2JdwHKjNdfSlkaA25TLYKjBuHr/TVtntfHbDY98ooonK7Qvjvd1MCmoeXxFf+IcxO K2xM79nKKHXeHReyNVNnQ4+R6bULVIKBsBebVzvuntAN5+yx03aEC8Jl8IUFrY9kFa60 OcvXWepytS9cpOn3r5CWqMaK5zp67di0WS0/R482OzwdCVIaGqEyYYjLzXxHHC/WEw70 5QgRWTJKoY2qH5ZWREIMHcrqI5/QGP8QTpfc4lS6RHnCUL6/+KoMmuMdDXiAy32IDdx0 yceg== X-Forwarded-Encrypted: i=1; AJvYcCUcKspPbxqKURVfEqP6wYXpmFWnY7jEvKhV8aGb3EdKpLQd8LZJwF1fSxsdD8Djj9jdbUq8NEjCx+dUAVN/@lists.postgresql.org X-Gm-Message-State: AOJu0YwyfrBIJ2RUd1XHSZEotyn7ulUHe2MXEkLrG543SrkzRZG9r63k niFVmmtE0Nc+LpGH5il65HmZ6E2+jhpQIqPD0giaZYl/xh0ULpNvs6P8czRs54k= X-Gm-Gg: ASbGncszj4xlDfIaf6s8YwNGjFK2J898YfkzVOJrarOZ4danrXnlCaIZ/JZlSG9jIKN sL8IVzSKmzIGOZ1b0eZ6IH5tIx5IfITgLMmTCk3oC+cwVqBMM3JN9fCEiqSuVGXUOESp/0oCsrb mLg2YvX9yyAVgCudrHx3A6vLgYKdWfrgu+Ww3DIo9DYpwJn9MmW1NYcAYWCkTfZtMPYU9lsrC38 kQCxKypcusB9LQxR9oOtBzcC2HJg0I8amY6ssgb6M9R+ASLhVJKuNg4/KaFCkrrjrkJMoPI4aA5 UyFvosGCaLXoIn9qUw== X-Google-Smtp-Source: AGHT+IG0bB0Oxg1DUu9qkjKbEFa1JjsrFYhbZZXhzNo+fiHpPOLwQTFOncOgcuhYjumrGF7/RAWN7g== X-Received: by 2002:a17:902:db12:b0:212:4ac2:4919 with SMTP id d9443c01a7336-21c35501869mr410208405ad.17.1737676457408; Thu, 23 Jan 2025 15:54:17 -0800 (PST) Received: from [192.168.2.139] ([50.39.255.79]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-21da424d934sm4624635ad.244.2025.01.23.15.54.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jan 2025 15:54:16 -0800 (PST) Message-ID: Date: Thu, 23 Jan 2025 15:54:15 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: SQL:2011 application time To: Tom Lane Cc: Peter Eisentraut , jian he , PostgreSQL Hackers , vignesh C References: <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> <9bb3eea7-820f-4932-92cb-cb564fc44caf@eisentraut.org> <246156.1737674914@sss.pgh.pa.us> Content-Language: en-US From: Paul Jungwirth In-Reply-To: <246156.1737674914@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 1/23/25 15:28, Tom Lane wrote: > Paul Jungwirth writes: >> I can't find a regression.diffs in the second link. Is there one? I can't tell if it's the same >> failure as in the first link as not. > > It is the same, but the diff is buried in some other file, > probably regress_log_027_stream_regress. Ah yes, I found it. It's the same failure: === dumping /home/bf/bf-build/mylodon/HEAD/pgsql.build/testrun/recovery/027_stream_regress/data/regression.diffs === diff -U3 /home/bf/bf-build/mylodon/HEAD/pgsql/src/test/regress/expected/without_overlaps.out /home/bf/bf-build/mylodon/HEAD/pgsql.build/testrun/recovery/027_stream_regress/data/results/without_overlaps.out --- /home/bf/bf-build/mylodon/HEAD/pgsql/src/test/regress/expected/without_overlaps.out 2025-01-21 13:46:02.766931451 +0000 +++ /home/bf/bf-build/mylodon/HEAD/pgsql.build/testrun/recovery/027_stream_regress/data/results/without_overlaps.out 2025-01-22 01:19:54.287558175 +0000 @@ -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 === EOF === >> I ran installcheck-parallel on my own machine continuously over night and haven't been able to >> reproduce this yet. How many cases have appeared on the build farm? More than these two? And just to >> confirm: they are only since committing 1772d554b0? > > I've only noticed the two, but I did not mount an aggressive search. > It's possible that there were failures before 1772d554b0, since I > now see that the diff is in a test case that is older than that. Okay, I'll keep in mind that it could be older. >> The infrequent failure made me suspect a memory error. It's hard to come up with explanations. > > Same error on two different machines makes it hard to credit hardware > glitches, if that's what you mean. I could believe a bad pointer > accessing unpredictable memory, but perhaps valgrind would catch that. Right, something like a bad pointer: the kind of memory error that *I* cause, not the celestial bodies. But I don't think it's a great theory considering how clean, limited, and consistent the test failure is. Another thought was that the test here is UPDATing two rows at once, and somehow things happen in an unusual order for these failures. But again for a RESTRICT check we're only querying the referencing table. It really looks like the RESTRICT constraint is doing the 1772d554b0 NO ACTION check. . . . Yours, -- Paul ~{:-) pj@illuminatedcomputing.com