From: Tom Lane <tgl@sss.pgh.pa.us>
To: androiddown_weiwei@hotmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17614: "variable not found in subplan target lists" on grouping query
Date: Thu, 15 Sep 2022 15:23:30 -0400
Message-ID: <3419783.1663269810@sss.pgh.pa.us> (raw)
In-Reply-To: <17614-8ec20c85bdecaa2a@postgresql.org>
References: <17614-8ec20c85bdecaa2a@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> The problem is reproducible with following sql:
> ```
> SELECT
> sp2.spf_id
> FROM
> information_schema.sql_parts AS sp
> CROSS JOIN LATERAL ( SELECT sizing_id FROM information_schema.sql_sizing )
> AS ss
> CROSS JOIN LATERAL ( SELECT sp.feature_id AS spf_id ) AS sp2
> GROUP BY
> CUBE ( sp2.spf_id )
> ```
> but seems having been fixed since 12.0
Yeah, it's a bug in code that we actually removed in v12
(so the fix was kind of accidental). Repaired, thanks
for the report!
regards, tom lane
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, androiddown_weiwei@hotmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17614: "variable not found in subplan target lists" on grouping query
In-Reply-To: <3419783.1663269810@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