BUG #18284: Filter in left lateral join not respected

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: holger(dot)reise(at)vitagroup(dot)ag
Subject: BUG #18284: Filter in left lateral join not respected
Date: 2024-01-11 14:34:55
Message-ID: 18284-47505a20c23647f8@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18284
Logged by: Holger Reise
Email address: holger(dot)reise(at)vitagroup(dot)ag
PostgreSQL version: 16.1
Operating system: Alpine 13.2.1, 64-bit
Description:

The following script returns two rows with `666`, whereas `null` is to be
expected:

WITH r1 AS (VALUES(null)),
r2 AS (VALUES(null), (null))
SELECT ljl.val_filtered
FROM r1
LEFT JOIN(
SELECT j666.val FROM r2
JOIN (SELECT 666 AS val) as j666 ON true
)AS lj_r2 ON true
LEFT JOIN LATERAL(
SELECT lj_r2.val AS val_filtered
WHERE false
) AS ljl ON true;

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2024-01-11 14:34:56 Re: BUG #17798: Incorrect memory access occurs when using BEFORE ROW UPDATE trigger
Previous Message Devrim Gündüz 2024-01-11 09:52:14 Re: BUG #18282: repomd.xml signature could not be verified for pgdg-common