BUG #17614: "variable not found in subplan target lists" on grouping query - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17614: "variable not found in subplan target lists" on grouping query
Date
Msg-id 17614-8ec20c85bdecaa2a@postgresql.org
Whole thread Raw
Responses Re: BUG #17614: "variable not found in subplan target lists" on grouping query
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17614
Logged by:          Wei Wei
Email address:      androiddown_weiwei@hotmail.com
PostgreSQL version: 11.17
Operating system:   Linux ubuntu 5.4.0-125-generic
Description:

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


pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: CVE-2022-2625
Next
From: Michael Rosinger
Date:
Subject: unexpected results when attempting to define and use column with data type SERIAL