pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18953: Planner fails to build plan for complex query with LATERAL references
Date: Fri, 27 Jun 2025 17:37:19 -0400
Message-ID: <2075249.1751060239@sss.pgh.pa.us> (raw)
In-Reply-To: <2056150.1751049350@sss.pgh.pa.us>
References: <18953-1c9883a9d4afeb30@postgresql.org>
	<CAMbWs49XTfPD9OCw9xWsRtbiNYgQ-Nau_hHy9UbbGP-w2V=ANQ@mail.gmail.com>
	<1268645.1749765012@sss.pgh.pa.us>
	<1499514.1749848324@sss.pgh.pa.us>
	<CAMbWs4_E7wC3LX17jr+RnRunz9ROcwhn0eXt0riJ6FjbxB0g+g@mail.gmail.com>
	<527134.1750087495@sss.pgh.pa.us>
	<CAMbWs4_wYvQWHCwBfSXj9OQ-fWn+xnntR+EVzks2KB0eRWcRpw@mail.gmail.com>
	<835659.1750177751@sss.pgh.pa.us>
	<837b0dce-b2f3-4811-bccf-f42e8985d6e2@gmail.com>
	<3040798.1750617116@sss.pgh.pa.us>
	<3886446.1750703041@sss.pgh.pa.us>
	<afb7be67-cc8a-42b9-952a-0bd7e8c9f925@gmail.com>
	<1487176.1750963077@sss.pgh.pa.us>
	<CAMbWs4_iW1e5ciQN1U7a8Nz773D5cV3p6UrL2zeXrbhoqzr=iw@mail.gmail.com>
	<2056150.1751049350@sss.pgh.pa.us>

... BTW, looking at these two patches again, I wonder if it'd be
better to put the hackery for SubLink conversion into
identify_current_nestloop_params?  That'd remove the need to argue
that we don't have to fix both copies of a nestloop-parameter PHV.
The responsibility doesn't clearly belong to
identify_current_nestloop_params, but it doesn't clearly belong
to create_nestloop_plan either, so neither choice seems superior
from a modularity standpoint.

			regards, tom lane





view thread (21+ messages)  latest in thread

Message-ID: <2075249.1751060239@sss.pgh.pa.us>
Permalink:  ../2075249.1751060239@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2075249.1751060239@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, guofenglinux@gmail.com, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18953: Planner fails to build plan for complex query with LATERAL references
  In-Reply-To: <2075249.1751060239@sss.pgh.pa.us>

* 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