pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: holger.reise@vitagroup.ag
Subject: BUG #18284: Filter in left lateral join not respected
Date: Thu, 11 Jan 2024 14:34:55 +0000
Message-ID: <18284-47505a20c23647f8@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18284
Logged by:          Holger Reise
Email address:      holger.reise@vitagroup.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;



view thread (5+ messages)  latest in thread

Message-ID: <18284-47505a20c23647f8@postgresql.org>
Permalink:  ../18284-47505a20c23647f8@postgresql.org/
Also on:    postgresql.org/message-id/18284-47505a20c23647f8@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, holger.reise@vitagroup.ag
  Subject: Re: BUG #18284: Filter in left lateral join not respected
  In-Reply-To: <18284-47505a20c23647f8@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox