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 1woIWC-000xKV-2z for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2026 10:25:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1woIWB-00CDpB-2u for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2026 10:25:07 +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 1wnWf8-005zmc-33 for pgsql-bugs@lists.postgresql.org; Sat, 25 Jul 2026 07:19:11 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wnWf5-000000009XB-3ixl for pgsql-bugs@lists.postgresql.org; Sat, 25 Jul 2026 07:19:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=EtT1f70CZhEBcHQJDTC+bWNdsXhpay5Y1LpedIKbBUQ=; b=mumOxPDz+8eDHgpb531/EH/GxE vcco6ukiIgsu90jaM97Tkk6aLuV/Jp3W+waJRIQOSki9oqhJ+sjUZwOAD4qQMM4FQqtYS4xAv4+0A pjTFMLImuTACcjZPcQtYI+7qTKZK19rl7/4yX4SdPqBZe/msvG7EXP1dvQnJMLHAJ+qLf5L85SjLl QVXFo13N+Td800Z5vBwO9E4Hrq7CIF4IiVxfGgjmoEEKvPT0pZMcE0MP7JqEpYJ1HNF+kzu1XPQuz ehlnpa5Ne6/IQKksSwlZ7vzYpzdPYDz+4KRomDvX0QvPpXsHYgjUU5UKGjEuzjixudovo/pUBhNwo eK4Shlnw==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wnWf2-000nzR-1f for pgsql-bugs@lists.postgresql.org; Sat, 25 Jul 2026 07:19:06 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1wnWf1-00000001gbn-2SHd for pgsql-bugs@lists.postgresql.org; Sat, 25 Jul 2026 07:19:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19579: Wrong results regression To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: leis@in.tum.de Reply-To: leis@in.tum.de, pgsql-bugs@lists.postgresql.org Date: Sat, 25 Jul 2026 07:19:01 +0000 Message-ID: <19579-e6296b6c9fc0591c@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19579 Logged by: Viktor Leis Email address: leis@in.tum.de PostgreSQL version: 19beta2 Operating system: Ubuntu 26.04 LTS Description: =20 Hi, The following self-contained query returns rows on current master and on 19beta2, but should return nothing. PostgreSQL 18 and earlier are unaffected. select * from (select 0 as c0 from (select t1.c0 from (select null::int as c0 from ((select 1) union all (select 2)) t0) t1 full join (select 1 as c1 where false) t2 on true) t3 where c0 <> 7) t4 cross join (select * from (values (0::bigint)) v(x) where now() is not null) t5; c0 | x ----+--- 0 | 0 0 | 0 (2 rows) t1.c0 is a plain NULL::integer, so "c0 <> 7" is NULL for every row and nothing should survive it. EXPLAIN (VERBOSE, COSTS OFF) shows that the filter is simply gone: Result Output: 0, '0'::bigint -> Append -> Result One-Time Filter: (now() IS NOT NULL) -> Result One-Time Filter: (now() IS NOT NULL) Bisection points to commit f2bae51dfd5 ("Keep track of what RTIs a Result node is scanning", 2025-09-23). Best regards, Viktor Leis