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 1tNFFC-009aiP-6R for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 17:50:58 +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 1tNFF9-009Lz2-Op for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 17:50:56 +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 1tNFF9-009Lyu-CE for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2024 17:50:56 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tNFF7-0039jv-Tf for pgsql-hackers@postgresql.org; Mon, 16 Dec 2024 17:50:55 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-2163bd70069so45118075ad.0 for ; Mon, 16 Dec 2024 09:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cleverelephant-ca.20230601.gappssmtp.com; s=20230601; t=1734371452; x=1734976252; darn=postgresql.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=RXuIcVmepgtJnlikD+59cLXYSD13W6gav3Ku/zksvsA=; b=fcFI1y+avYHj0JloWpefvLlvHI2jTKXHZLjh04+kZ5YieFRepd6QhL7fxoz4mOQp5n 86qxBeP1jJ8DQ+LON1gd4oOPArC/Wk09kcYc3dNlhtplyvk2rLtAI8sFYEXbo40qH90f 4Gj//JY61yxfq/cK0qKA1fZ/WvBwvAT/1qtNBFx3LNX3Z9j3XhYPDkp2+X9m1kseci1k yg8/By7hQvS2U3ZUCsswNqifeUTSoWT+NjsGNVrkpEZWK5tyKyU2hZgMEhoonlpo/898 eoY9PEFOcGCZXvtgL3u7YLphmEOq+eDGBqEELwz0GuGFVm/yVIgdxnywMnfXqbXjMYqp gt8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734371452; x=1734976252; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RXuIcVmepgtJnlikD+59cLXYSD13W6gav3Ku/zksvsA=; b=dEFGTAgtOnAqLfEyrYO6YIeVenWkQPPy9P5h0LW1QgXWdNuYl9OWfgaBiK6OqDHUAd BFutlVGKIeDCq039hfjbDTGCxFPgaNWIwL9ppYrSadNG/HWnTnhc49lRbkWwpff/F19O PsNDtsObr5dyCXA4dBXo9hZuLjPrrrcg77x27wbLCKTGvtd39EU7PL70Bv/2a+y+nW5U PjOM4AGYCw1ckmxQOKTcgqUc0ialxuDKi5vaXV+UGDzQSFlmd3b1bl9OVr8BDXgDKaxB wd0TjijN3pnkbxqvxVKcKNOd/LeyS75/KWKvpQQsK/9VhzygWSfb1OGEqv31cDAsaA/S dRQw== X-Gm-Message-State: AOJu0YwIjdR3ojuVW8x19UJRhQOQvRHuql/kcTO8wpVKVmmmoE7EYBJ2 +vvzGO+qh6NGohTzYoM4yX+cLKR6g3NcHZr+7s3siIZY1DJ1hTvSlaGxkt5dKFUp9iw/C1H3IQY = X-Gm-Gg: ASbGncuwS1/i8E9FDOSGn0F0ykiOYcZG+CWz1J2TcABQj4IB5C5MSAfALHofuVTA7vQ iTKxu7ZI2zhu9yGNb3wgHmLu7/tdUsi6jxRVQSfTIlvyivkJktDQKNQxyHPr3b2z3t7rjIWJiFu 7Y4oMxVMyOWC5ywUlNmyyoUvRAljuXhkicO9INR/tMPmoXZBZsZVlym2dxhEMh4ANfVz/2qubVf eByNe/wHMa65RG/eWY4YY285OLGwf2txbdwvFStSYcTDONYpSXrv+xE0VdDVbBtqD1EYuRGGY2I c31Vof8f X-Google-Smtp-Source: AGHT+IHoXYowYfJ3kEEbNwu8hZg55gQw6YESIhpmR/lXyFgx0D5JXlvhHSuTSIGRo2ZXHGGFZOXlsw== X-Received: by 2002:a17:902:ea02:b0:215:8f2e:eeda with SMTP id d9443c01a7336-21892a52ff1mr198445295ad.52.1734371450664; Mon, 16 Dec 2024 09:50:50 -0800 (PST) Received: from smtpclient.apple ([206.87.70.85]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1e510b7sm45542565ad.161.2024.12.16.09.50.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Dec 2024 09:50:50 -0800 (PST) From: Paul Ramsey Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Pg18 Recursive Crash Message-Id: <99F064C1-B3EB-4BE7-97D2-D2A0AA487A71@cleverelephant.ca> Date: Mon, 16 Dec 2024 09:50:39 -0800 To: PostgreSQL Hackers X-Mailer: Apple Mail (2.3776.700.51.11.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Apologies if this is already reported, but there=E2=80=99s a crasher in = recursive queries at the head of the current development that happened = to be exercised by our regression suite. Here is a core-only = reproduction. CREATE TABLE foo (id integer, x integer, y integer); INSERT INTO foo VALUES (1, 0, 1); INSERT INTO foo VALUES (2, 1, 2); INSERT INTO foo VALUES (3, 2, 3); WITH RECURSIVE path (id, x, y) AS ( SELECT id, x, y FROM foo WHERE id =3D 1 UNION SELECT foo.id, foo.x, foo.y FROM path, foo WHERE path.y =3D foo.x ) SELECT 'crash', id, x, y FROM path; Thanks! ATB, P=