planner failure with ProjectSet + aggregation + parallel query - Mailing list pgsql-hackers

From Robert Haas
Subject planner failure with ProjectSet + aggregation + parallel query
Date
Msg-id CA+TgmoYYawpgV7Ewo47YR9ZivBcMiqLwpp5kpvgNXLcQNnxZnQ@mail.gmail.com
Whole thread Raw
Responses Re: planner failure with ProjectSet + aggregation + parallel query  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
While trying to track down a bug today, I found a different bug.

As of 6946280cded903b6f5269fcce105f8ab1d455d33:

rhaas=# create table foo (a int);
CREATE TABLE
rhaas=# set min_parallel_table_scan_size = 0;
SET
rhaas=# set parallel_setup_cost = 0;
SET
rhaas=# set parallel_tuple_cost = 0;
SET
rhaas=# select generate_series(1, a) from foo group by a;
ERROR:  ORDER/GROUP BY expression not found in targetlist

Without the SET commands, or without the GROUP BY, or without the SRF,
it successfully constructs a plan.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Antonin Houska
Date:
Subject: Too much memory allocated for ReorderBufferDiskChange
Next
From: Alvaro Herrera
Date:
Subject: Re: [PoC PATCH] Parallel dump to /dev/null