pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Justin Pryzby <pryzby@telsasoft.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org, "Finnerty, Jim" <jfinnert@amazon.com>
Subject: Re: Making Vars outer-join aware
Date: Mon, 13 Feb 2023 12:48:07 -0600
Message-ID: <20230213184807.GF1653@telsasoft.com> (raw )
In-Reply-To: <CAMbWs4-K8_yqARnrmRB5=xAWTJGgTpimQinvaa-k6c8f6Hideg@mail.gmail.com >
References: <1035990.1667261942@sss.pgh.pa.us >
<2901865.1667685211@sss.pgh.pa.us >
<CAMbWs4_pH7w7voY0AejUM4RiKq-Xuf+sXmoF8PcQwzNrsagEXA@mail.gmail.com >
<CAMbWs4_gXgGdkkOraUPEoZD_Q3xTW7FTxfomW+fxPN2Kr-YSXg@mail.gmail.com >
<4019771.1672155080@sss.pgh.pa.us >
<CAMbWs4_JDDdXvEBWtTao9ZTwOGdDCU7X-=bF7yi9G1u_-b0Dfw@mail.gmail.com >
<323812.1672241806@sss.pgh.pa.us >
<2043562.1674506286@sss.pgh.pa.us >
<20230212235823.GW1653@telsasoft.com >
<CAMbWs4-K8_yqARnrmRB5=xAWTJGgTpimQinvaa-k6c8f6Hideg@mail.gmail.com >
On Mon, Feb 13, 2023 at 03:33:15PM +0800, Richard Guo wrote:
> On Mon, Feb 13, 2023 at 7:58 AM Justin Pryzby <pryzby@telsasoft.com> wrote:
> > The patch broke this query:
> >
> > select from pg_inherits inner join information_schema.element_types
> > right join (select from pg_constraint as sample_2) on true
> > on false, lateral (select scope_catalog, inhdetachpending from
> > pg_publication_namespace limit 3);
> > ERROR: could not devise a query plan for the given query
> BTW, here is a simplified query that can trigger this issue on HEAD.
>
> select * from t1 inner join t2 left join (select null as c from t3 left
> join t4 on true) as sub on true on true, lateral (select c, t1.a from t5
> offset 0 ) ss;
It probably doesn't need to be said that the original query was reduced
from sqlsmith... But I mention that now to make it searchable.
Thanks,
--
Justin
view thread (60+ messages) latest in thread
Message-ID: <20230213184807.GF1653@telsasoft.com>
Permalink: ../20230213184807.GF1653@telsasoft.com/
Also on: postgresql.org/message-id/20230213184807.GF1653@telsasoft.com
copy link · copy postgr.es
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-hackers@postgresql.org
Cc: pryzby@telsasoft.com, guofenglinux@gmail.com, tgl@sss.pgh.pa.us, jfinnert@amazon.com
Subject: Re: Making Vars outer-join aware
In-Reply-To: <20230213184807.GF1653@telsasoft.com>
* 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